/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: 8b4af0a
 * Options:   --bitfields --packed-struct --output test35543.c
 * Seed:      807136119787764745
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
union U0 {
   volatile int64_t  f0;
   uint16_t  f1;
};

/* --- GLOBAL VARIABLES --- */
static volatile int32_t g_2 = 0x5A136951L;/* VOLATILE GLOBAL g_2 */
static int32_t g_3 = 0x86CCE57BL;
static int32_t g_6[8][5][6] = {{{(-10L),0x941FC9A5L,(-10L),(-1L),0x941FC9A5L,0x849B76EEL},{(-10L),0x7A6DEEC5L,(-1L),(-1L),0x7A6DEEC5L,(-10L)},{(-10L),1L,0x849B76EEL,(-1L),1L,(-1L)},{(-10L),0x941FC9A5L,(-10L),(-1L),0x941FC9A5L,0x849B76EEL},{(-10L),0x7A6DEEC5L,(-1L),(-1L),0x7A6DEEC5L,(-10L)}},{{(-10L),1L,0x849B76EEL,(-1L),1L,(-1L)},{(-10L),0x941FC9A5L,(-10L),(-1L),0x941FC9A5L,0x849B76EEL},{(-10L),0x7A6DEEC5L,(-1L),(-1L),(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL}},{{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L}},{{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L}},{{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL}},{{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L}},{{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L}},{{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0L,0x849B76EEL,0x0D72276BL},{0x1454BCD7L,(-1L),0L,0L,(-1L),0x1454BCD7L},{0x1454BCD7L,(-10L),0x0D72276BL,0L,(-10L),0L},{0x1454BCD7L,0x849B76EEL,0x1454BCD7L,0x941FC9A5L,0x0D72276BL,1L}}};
static uint32_t g_39 = 1UL;
static int16_t g_43 = 0x946CL;
static uint16_t g_54 = 65534UL;
static uint16_t g_86 = 0UL;
static uint16_t *g_85 = &g_86;
static uint64_t g_99 = 0x5D781F8E388CD3BCLL;
static uint64_t g_103 = 9UL;
static int64_t g_108[6] = {(-1L),0x66FF5FBB4CDDCCF3LL,(-1L),(-1L),0x66FF5FBB4CDDCCF3LL,(-1L)};
static uint32_t g_110 = 9UL;
static int32_t g_111 = 0xCC3AA3D5L;
static uint16_t **g_113 = &g_85;
static uint16_t *** volatile g_112[4] = {&g_113,&g_113,&g_113,&g_113};
static int8_t g_118 = 0x37L;
static int32_t g_128[8] = {0x1C4191E1L,0x1C4191E1L,0xB83574D0L,0x1C4191E1L,0x1C4191E1L,0xB83574D0L,0x1C4191E1L,0x1C4191E1L};
static uint32_t g_134 = 0x4971ED8DL;
static uint32_t g_147 = 0xDF6875C0L;
static union U0 g_156 = {0xB70BD878CC6E09C6LL};/* VOLATILE GLOBAL g_156 */
static int32_t g_158[7] = {0L,0x8A167226L,0L,0L,0x8A167226L,0L,0L};
static uint32_t g_194 = 0UL;
static volatile union U0 g_198 = {6L};/* VOLATILE GLOBAL g_198 */
static volatile union U0 g_228[9] = {{-1L},{-1L},{0x7CB0A0F085550C3FLL},{-1L},{-1L},{0x7CB0A0F085550C3FLL},{-1L},{-1L},{0x7CB0A0F085550C3FLL}};
static int32_t *g_236 = &g_158[3];
static volatile union U0 g_266 = {0L};/* VOLATILE GLOBAL g_266 */
static int64_t g_363 = 0x472D28923FCA1A84LL;
static uint32_t g_390[5] = {4294967295UL,4294967295UL,4294967295UL,4294967295UL,4294967295UL};
static volatile int64_t g_421[9] = {4L,4L,4L,4L,4L,4L,4L,4L,4L};
static int32_t * volatile g_436 = &g_158[2];/* VOLATILE GLOBAL g_436 */
static union U0 g_445[8][6] = {{{0L},{-10L},{0x98A8C131B12D0C62LL},{0L},{-1L},{0x98A8C131B12D0C62LL}},{{0L},{-1L},{0x98A8C131B12D0C62LL},{0x98A8C131B12D0C62LL},{-1L},{0L}},{{0L},{-10L},{0x98A8C131B12D0C62LL},{0L},{-1L},{0x98A8C131B12D0C62LL}},{{0L},{-1L},{0x98A8C131B12D0C62LL},{0x98A8C131B12D0C62LL},{-1L},{0L}},{{0L},{-10L},{0x98A8C131B12D0C62LL},{0L},{-1L},{0x98A8C131B12D0C62LL}},{{0L},{-1L},{0x98A8C131B12D0C62LL},{0x98A8C131B12D0C62LL},{-1L},{0L}},{{0L},{-10L},{0x98A8C131B12D0C62LL},{0L},{-1L},{0x98A8C131B12D0C62LL}},{{0L},{-1L},{0x98A8C131B12D0C62LL},{0x98A8C131B12D0C62LL},{-1L},{0L}}};
static volatile union U0 g_454[2] = {{0x7EF65A4B45C7B378LL},{0x7EF65A4B45C7B378LL}};
static int16_t g_462[7][4] = {{(-6L),0xB6D2L,0xB6D2L,(-6L)},{0xB6D2L,(-6L),0xB6D2L,0xB6D2L},{(-6L),(-6L),0x8435L,(-6L)},{(-6L),0xB6D2L,0xB6D2L,(-6L)},{0xB6D2L,(-6L),0xB6D2L,0xB6D2L},{(-6L),(-6L),0x8435L,(-6L)},{(-6L),0xB6D2L,0xB6D2L,(-6L)}};
static int8_t g_479 = (-1L);
static volatile union U0 g_500 = {-5L};/* VOLATILE GLOBAL g_500 */
static volatile uint32_t g_505[8][7][4] = {{{0xE430D573L,0x3F44A2FEL,0x3F44A2FEL,0xE430D573L},{0xE430D573L,18446744073709551608UL,1UL,0x092118AAL},{18446744073709551615UL,0xE430D573L,0UL,2UL},{0x4D90D084L,1UL,0x4D90D084L,2UL},{0UL,0xE430D573L,18446744073709551615UL,0x092118AAL},{1UL,18446744073709551608UL,0xE430D573L,0xE430D573L},{0x3F44A2FEL,0x3F44A2FEL,0xE430D573L,0x4D90D084L}},{{1UL,8UL,18446744073709551615UL,18446744073709551608UL},{0UL,18446744073709551615UL,0x4D90D084L,18446744073709551615UL},{0x4D90D084L,18446744073709551615UL,0UL,18446744073709551608UL},{18446744073709551615UL,8UL,1UL,0x4D90D084L},{0xE430D573L,0x3F44A2FEL,0x3F44A2FEL,0xE430D573L},{0xE430D573L,18446744073709551608UL,1UL,0x092118AAL},{18446744073709551615UL,0xE430D573L,0UL,2UL}},{{0x4D90D084L,1UL,0x4D90D084L,2UL},{0UL,0x3F44A2FEL,1UL,8UL},{0x4D90D084L,0xE430D573L,0x3F44A2FEL,0x3F44A2FEL},{2UL,2UL,0x3F44A2FEL,18446744073709551608UL},{0x4D90D084L,0UL,1UL,0xE430D573L},{1UL,1UL,18446744073709551608UL,1UL},{18446744073709551608UL,1UL,1UL,0xE430D573L}},{{1UL,0UL,0x4D90D084L,18446744073709551608UL},{0x3F44A2FEL,2UL,2UL,0x3F44A2FEL},{0x3F44A2FEL,0xE430D573L,0x4D90D084L,8UL},{1UL,0x3F44A2FEL,1UL,18446744073709551615UL},{18446744073709551608UL,0x092118AAL,18446744073709551608UL,18446744073709551615UL},{1UL,0x3F44A2FEL,1UL,8UL},{0x4D90D084L,0xE430D573L,0x3F44A2FEL,0x3F44A2FEL}},{{2UL,2UL,0x3F44A2FEL,18446744073709551608UL},{0x4D90D084L,0UL,1UL,0xE430D573L},{1UL,1UL,18446744073709551608UL,1UL},{18446744073709551608UL,1UL,1UL,0xE430D573L},{1UL,0UL,0x4D90D084L,18446744073709551608UL},{0x3F44A2FEL,2UL,2UL,0x3F44A2FEL},{0x3F44A2FEL,0xE430D573L,0x4D90D084L,8UL}},{{1UL,0x3F44A2FEL,1UL,18446744073709551615UL},{18446744073709551608UL,0x092118AAL,18446744073709551608UL,18446744073709551615UL},{1UL,0x3F44A2FEL,1UL,8UL},{0x4D90D084L,0xE430D573L,0x3F44A2FEL,0x3F44A2FEL},{2UL,2UL,0x3F44A2FEL,18446744073709551608UL},{0x4D90D084L,0UL,1UL,0xE430D573L},{1UL,1UL,18446744073709551608UL,1UL}},{{18446744073709551608UL,1UL,1UL,0xE430D573L},{1UL,0UL,0x4D90D084L,18446744073709551608UL},{0x3F44A2FEL,2UL,2UL,0x3F44A2FEL},{0x3F44A2FEL,0xE430D573L,0x4D90D084L,8UL},{1UL,0x3F44A2FEL,1UL,18446744073709551615UL},{18446744073709551608UL,0x092118AAL,18446744073709551608UL,18446744073709551615UL},{1UL,0x3F44A2FEL,1UL,8UL}},{{0x4D90D084L,0xE430D573L,0x3F44A2FEL,0x3F44A2FEL},{2UL,2UL,0x3F44A2FEL,18446744073709551608UL},{0x4D90D084L,0UL,1UL,0xE430D573L},{1UL,1UL,18446744073709551608UL,1UL},{18446744073709551608UL,1UL,1UL,0xE430D573L},{1UL,0UL,0x4D90D084L,18446744073709551608UL},{0x3F44A2FEL,2UL,2UL,0x3F44A2FEL}}};
static volatile uint32_t g_506 = 0x892E46A4L;/* VOLATILE GLOBAL g_506 */
static volatile uint32_t * volatile g_504[4] = {&g_505[5][0][0],&g_505[5][0][0],&g_505[5][0][0],&g_505[5][0][0]};
static volatile uint32_t * volatile *g_503 = &g_504[1];
static union U0 **g_513 = (void*)0;
static uint16_t ****g_578 = (void*)0;
static volatile union U0 g_615 = {3L};/* VOLATILE GLOBAL g_615 */
static int32_t g_651[4][9][4] = {{{(-1L),(-1L),0L,2L},{0x99F7572DL,(-1L),0L,0L},{0x99F7572DL,0L,0L,0x99F7572DL},{(-1L),0L,2L,0L},{0L,(-1L),0L,0x6CD465DBL},{(-1L),(-1L),0L,0x6CD465DBL},{0L,(-1L),0L,0L},{2L,9L,0x99F7572DL,2L},{0L,0L,0xD6F818ADL,9L}},{{0L,(-1L),0xD6F818ADL,0xD6F818ADL},{0L,0L,0x99F7572DL,0xDEE63883L},{2L,5L,0L,9L},{0L,9L,0L,0L},{0L,9L,(-1L),9L},{9L,5L,0xD6F818ADL,0xDEE63883L},{0xD2A6B41DL,0L,0L,0xD6F818ADL},{2L,(-1L),0x6CD465DBL,9L},{2L,0L,0L,2L}},{{0xD2A6B41DL,9L,0xD6F818ADL,0L},{9L,(-1L),(-1L),0xDEE63883L},{0L,0xD2A6B41DL,0L,0xDEE63883L},{0L,(-1L),0L,0L},{2L,9L,0x99F7572DL,2L},{0L,0L,0xD6F818ADL,9L},{0L,(-1L),0xD6F818ADL,0xD6F818ADL},{0L,0L,0x99F7572DL,0xDEE63883L},{2L,5L,0L,9L}},{{0L,9L,0L,0L},{0L,9L,(-1L),9L},{9L,5L,0xD6F818ADL,0xDEE63883L},{0xD2A6B41DL,0L,0L,0xD6F818ADL},{2L,(-1L),0x6CD465DBL,9L},{2L,0L,0L,2L},{0xD2A6B41DL,9L,0xD6F818ADL,0L},{9L,(-1L),(-1L),0xDEE63883L},{0L,0xD2A6B41DL,0L,0xDEE63883L}}};
static uint32_t g_674 = 0x0B60085EL;
static volatile int32_t *g_700 = &g_2;
static uint8_t g_738 = 0x6EL;
static uint8_t *g_737[5] = {&g_738,&g_738,&g_738,&g_738,&g_738};
static volatile union U0 g_757 = {0x98957EEA8D2B48FELL};/* VOLATILE GLOBAL g_757 */
static int16_t g_778 = 5L;
static const int16_t g_802 = 0x086DL;
static int32_t *** volatile g_836 = (void*)0;/* VOLATILE GLOBAL g_836 */
static uint8_t * volatile g_867 = (void*)0;/* VOLATILE GLOBAL g_867 */
static uint8_t * volatile *g_866 = &g_867;
static union U0 g_879 = {0L};/* VOLATILE GLOBAL g_879 */
static union U0 g_905[8][6][5] = {{{{0x3E4755949265FB11LL},{0x52CF2ED9A53EA152LL},{-1L},{0x98CF0EC01CF303EALL},{0L}},{{0xBB0D01FA66364D4ELL},{0x8B355E9EE8B84A30LL},{-1L},{-1L},{0x2C7199EDB02DCC4DLL}},{{1L},{0xECB54F0373FA8B9ALL},{0xE6B023C8CE761DF4LL},{-7L},{1L}},{{0x1205A3123732CDF5LL},{-5L},{-6L},{0x5B4F1431C71FA279LL},{0L}},{{-7L},{7L},{-10L},{0x4A58ADE3245089D7LL},{0x3D3A4F9F8F3CBF9ALL}},{{0L},{0L},{0xEA57BF84DD7F61F2LL},{1L},{-1L}}},{{{0x2C7199EDB02DCC4DLL},{0L},{0xB9F3EF478EA1A92ALL},{0L},{-10L}},{{-1L},{7L},{0x3D3A4F9F8F3CBF9ALL},{0x36A87E707C60384ELL},{-9L}},{{0x8B355E9EE8B84A30LL},{-5L},{0x8B29A643BBCA8958LL},{-1L},{0x4A58ADE3245089D7LL}},{{-1L},{0xECB54F0373FA8B9ALL},{0L},{1L},{-1L}},{{0x207A77AE28C0DF94LL},{0x8B355E9EE8B84A30LL},{0xFED073A33442AD19LL},{0x3D3A4F9F8F3CBF9ALL},{-1L}},{{0L},{0x52CF2ED9A53EA152LL},{0x52CF2ED9A53EA152LL},{0L},{0xBB0D01FA66364D4ELL}}},{{{-1L},{-1L},{0x01A792C8FE166F3FLL},{0x8E23519FE442F2E6LL},{0x6B6B2D114B9EF447LL}},{{0x8B29A643BBCA8958LL},{-3L},{1L},{0xBB0D01FA66364D4ELL},{0L}},{{0x6B6B2D114B9EF447LL},{0x8AC4AA3F58A338D1LL},{1L},{0x1205A3123732CDF5LL},{0x4B9AA344227C5C85LL}},{{6L},{-1L},{-3L},{0x4A58ADE3245089D7LL},{0x8B29A643BBCA8958LL}},{{0x8E23519FE442F2E6LL},{0x3AD900D083013E4CLL},{0L},{0x52CF2ED9A53EA152LL},{1L}},{{0x10E909DD6BC257FFLL},{6L},{-5L},{0xA9380159EEF31D22LL},{-7L}}},{{{-5L},{-1L},{-1L},{0L},{0L}},{{0L},{0x1205A3123732CDF5LL},{-1L},{0x2D43982265D54913LL},{0x8AC4AA3F58A338D1LL}},{{-1L},{0x6B6B2D114B9EF447LL},{0x1205A3123732CDF5LL},{0x8AC4AA3F58A338D1LL},{6L}},{{-1L},{0xF6B5955766736331LL},{1L},{-5L},{-9L}},{{-1L},{0x4B9AA344227C5C85LL},{0x938A13B71A1BEC0ALL},{-10L},{1L}},{{-1L},{0xFED073A33442AD19LL},{0x0C55105CE7D3D5A8LL},{-1L},{0x4A58ADE3245089D7LL}}},{{{0L},{0x8E23519FE442F2E6LL},{0xEA57BF84DD7F61F2LL},{0x3E4755949265FB11LL},{0x2C7199EDB02DCC4DLL}},{{-5L},{-1L},{6L},{-1L},{-3L}},{{0x10E909DD6BC257FFLL},{-10L},{0x3AD900D083013E4CLL},{0x3D3A4F9F8F3CBF9ALL},{0x3D3A4F9F8F3CBF9ALL}},{{0x8E23519FE442F2E6LL},{-7L},{0x8E23519FE442F2E6LL},{0x36A87E707C60384ELL},{0xECB54F0373FA8B9ALL}},{{6L},{0x52CF2ED9A53EA152LL},{0xBB0D01FA66364D4ELL},{-1L},{-1L}},{{0x6B6B2D114B9EF447LL},{0x7CBB8860B019EE50LL},{0x8B355E9EE8B84A30LL},{0xE6B023C8CE761DF4LL},{0x2D43982265D54913LL}}},{{{-6L},{0xEA57BF84DD7F61F2LL},{0xBB0D01FA66364D4ELL},{-1L},{0x13EF125F871762ACLL}},{{1L},{-1L},{0x8E23519FE442F2E6LL},{0x3AD900D083013E4CLL},{0L}},{{0x4A58ADE3245089D7LL},{0x8B29A643BBCA8958LL},{0x3AD900D083013E4CLL},{-6L},{0xBB0D01FA66364D4ELL}},{{-1L},{0x13EF125F871762ACLL},{6L},{1L},{0L}},{{0L},{0x8B355E9EE8B84A30LL},{0xEA57BF84DD7F61F2LL},{0xFED073A33442AD19LL},{-1L}},{{-1L},{0x2C7199EDB02DCC4DLL},{0x0C55105CE7D3D5A8LL},{0L},{0L}}},{{{0L},{0x36A87E707C60384ELL},{0x938A13B71A1BEC0ALL},{0x7CBB8860B019EE50LL},{0xF6B5955766736331LL}},{{0x7CBB8860B019EE50LL},{-1L},{1L},{0x5B4F1431C71FA279LL},{0xF6B5955766736331LL}},{{0x3AD900D083013E4CLL},{0L},{0x1205A3123732CDF5LL},{0x10E909DD6BC257FFLL},{0L}},{{0x3E4755949265FB11LL},{0x10E909DD6BC257FFLL},{-1L},{-7L},{-1L}},{{0x8B355E9EE8B84A30LL},{0L},{-1L},{1L},{0L}},{{-3L},{-1L},{-5L},{-10L},{0xBB0D01FA66364D4ELL}}},{{{0L},{-6L},{0L},{0L},{0L}},{{8L},{8L},{-3L},{0xA54291571DACA6C5LL},{0x13EF125F871762ACLL}},{{1L},{-3L},{1L},{0x98CF0EC01CF303EALL},{0x2D43982265D54913LL}},{{0L},{0x2D43982265D54913LL},{1L},{-1L},{-1L}},{{-1L},{-3L},{0L},{-9L},{0xECB54F0373FA8B9ALL}},{{0xECB54F0373FA8B9ALL},{8L},{0x2E3F12420C99489ELL},{0L},{0x3D3A4F9F8F3CBF9ALL}}}};
static uint32_t g_939 = 0x2032673DL;
static union U0 g_1001 = {0x0CB2E91695748B8DLL};/* VOLATILE GLOBAL g_1001 */
static int16_t *g_1112 = &g_778;
static int16_t **g_1111[4] = {&g_1112,&g_1112,&g_1112,&g_1112};
static const int16_t * const g_1115 = &g_462[1][2];
static const int16_t * const *g_1114 = &g_1115;
static int64_t g_1142[1][2] = {{(-1L),(-1L)}};
static uint64_t g_1144 = 0xA5AF3DB8F708427CLL;
static volatile int64_t g_1156 = 1L;/* VOLATILE GLOBAL g_1156 */
static volatile union U0 g_1171 = {0L};/* VOLATILE GLOBAL g_1171 */
static int32_t g_1216 = 8L;
static int64_t *g_1254 = &g_108[5];
static volatile union U0 g_1274 = {0x1F48C6B876D41FE8LL};/* VOLATILE GLOBAL g_1274 */
static int16_t ** const ***g_1294 = (void*)0;
static int16_t ** const *g_1297[9][9][3] = {{{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]}},{{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]}},{{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]}},{{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]}},{{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]}},{{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]}},{{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]}},{{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]}},{{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,&g_1111[0],&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]},{(void*)0,(void*)0,&g_1111[0]},{&g_1111[0],&g_1111[0],&g_1111[0]}}};
static int16_t ** const **g_1296 = &g_1297[6][0][2];
static int16_t ** const ***g_1295 = &g_1296;
static union U0 g_1325 = {1L};/* VOLATILE GLOBAL g_1325 */
static uint64_t *g_1342 = &g_103;
static uint64_t **g_1341 = &g_1342;
static uint8_t g_1347 = 0xB8L;
static const uint32_t *g_1404 = (void*)0;
static const uint32_t **g_1403[9] = {&g_1404,&g_1404,&g_1404,&g_1404,&g_1404,&g_1404,&g_1404,&g_1404,&g_1404};
static const volatile int64_t *g_1411[10] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
static const volatile int64_t **g_1410 = &g_1411[5];
static const volatile int64_t *** volatile g_1409[9][4] = {{(void*)0,&g_1410,(void*)0,(void*)0},{&g_1410,&g_1410,&g_1410,(void*)0},{&g_1410,(void*)0,(void*)0,&g_1410},{(void*)0,(void*)0,(void*)0,(void*)0},{&g_1410,&g_1410,&g_1410,&g_1410},{&g_1410,(void*)0,(void*)0,&g_1410},{(void*)0,&g_1410,(void*)0,(void*)0},{(void*)0,(void*)0,&g_1410,&g_1410},{(void*)0,(void*)0,(void*)0,(void*)0}};
static int64_t g_1428 = 0x1C5F879F05362AFALL;
static int16_t ***g_1479 = &g_1111[1];
static int16_t ****g_1478 = &g_1479;
static int16_t *****g_1477 = &g_1478;
static uint64_t g_1677 = 8UL;
static union U0 g_1729 = {0x80AE7908BD6A8645LL};/* VOLATILE GLOBAL g_1729 */
static int8_t *g_1742[6] = {&g_479,&g_479,&g_479,&g_479,&g_479,&g_479};
static const int16_t g_1748 = 0x7DF1L;
static uint16_t *** volatile g_1780 = (void*)0;/* VOLATILE GLOBAL g_1780 */
static uint16_t *** volatile g_1781 = &g_113;/* VOLATILE GLOBAL g_1781 */
static int32_t ** volatile g_1783 = &g_236;/* VOLATILE GLOBAL g_1783 */
static int32_t **g_1791 = &g_236;
static int32_t ***g_1790 = &g_1791;
static int32_t *** const *g_1789[2] = {&g_1790,&g_1790};
static volatile uint32_t g_1883 = 0x5CA4C3B6L;/* VOLATILE GLOBAL g_1883 */
static volatile union U0 *g_1943 = &g_615;
static volatile union U0 ** volatile g_1942 = &g_1943;/* VOLATILE GLOBAL g_1942 */
static uint16_t g_1993 = 65528UL;
static uint8_t *g_2002[8][5] = {{&g_1347,&g_1347,(void*)0,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,(void*)0,&g_1347},{&g_1347,(void*)0,&g_1347,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347},{(void*)0,(void*)0,&g_1347,(void*)0,&g_1347},{(void*)0,&g_1347,&g_1347,&g_1347,&g_1347}};
static volatile int8_t g_2087 = 0x63L;/* VOLATILE GLOBAL g_2087 */
static union U0 g_2134 = {0L};/* VOLATILE GLOBAL g_2134 */
static uint8_t g_2145 = 0xE0L;
static volatile int8_t g_2150[1][2][5] = {{{0x6CL,0x6CL,0x6CL,0x6CL,0x6CL},{0xC5L,0xC5L,0xC5L,0xC5L,0xC5L}}};
static uint32_t *g_2178 = &g_194;
static uint32_t ** const g_2177 = &g_2178;
static uint32_t ** const *g_2176 = &g_2177;
static int8_t **g_2237 = &g_1742[2];
static int8_t *** const  volatile g_2236 = &g_2237;/* VOLATILE GLOBAL g_2236 */
static int64_t g_2252 = 0x74C111BE1695EA98LL;
static volatile union U0 g_2299 = {1L};/* VOLATILE GLOBAL g_2299 */
static uint32_t g_2423[7][6][6] = {{{0x654149EFL,0UL,0UL,4294967295UL,0x36EE149BL,4294967290UL},{0xE0A40FD2L,0xFF6A6F7FL,0xA63E400FL,0x3C4930A9L,1UL,0x2C1D3B67L},{4294967295UL,0xBE808619L,4294967295UL,4294967295UL,0UL,0x25BC62C2L},{0xE4E6A841L,4294967295UL,0xACB09DC8L,8UL,0x07CE13FBL,4294967295UL},{0x6C8C352AL,0x2C1D3B67L,0UL,4294967288UL,0x8F1D4CABL,0UL},{0UL,0x36EE149BL,0x7CD0BF88L,4294967289UL,4294967295UL,4294967293UL}},{{0xD1BB123DL,1UL,4UL,4294967287UL,0xC0D8A3B9L,0xC4CAD261L},{1UL,4294967289UL,4294967295UL,4294967293UL,4294967295UL,1UL},{1UL,1UL,0x64F4DC61L,4294967295UL,4294967295UL,4294967295UL},{0x37587139L,0UL,0xACB09DC8L,0xBFBAC019L,4294967295UL,0xBE808619L},{0xE75F6327L,0xE0A40FD2L,0xBFBAC019L,1UL,6UL,4294967295UL},{4294967290UL,4294967295UL,4294967295UL,4294967295UL,4294967290UL,0x07CE13FBL}},{{1UL,0x9D5ECBE2L,0xCD61C992L,0xDA13B45BL,0x6C8C352AL,0xA63E400FL},{0xA6EC6CEEL,0x2C1D3B67L,1UL,0x9D5ECBE2L,0UL,0xA63E400FL},{0x3C4930A9L,4294967293UL,0xCD61C992L,0x8AA9EEEFL,0xACB09DC8L,0x07CE13FBL},{0UL,0x4E106F96L,4294967295UL,0xFEA9B3E4L,1UL,4294967295UL},{0xFF6A6F7FL,0xCD61C992L,0xBFBAC019L,0xB4DC75B2L,0xC4CAD261L,0xBE808619L},{0x64F4DC61L,0x2EBA6A25L,0xACB09DC8L,0xA6EC6CEEL,0xF88B38F8L,4294967295UL}},{{0xDA13B45BL,0x0691BFD6L,0x64F4DC61L,0x462F0657L,0xB4DC75B2L,1UL},{0x8F1D4CABL,0xD1BB123DL,4294967295UL,4294967295UL,0xACB09DC8L,0xC4CAD261L},{4294967295UL,0UL,4UL,0xFB83B521L,0x5336B333L,0xCD61C992L},{4294967293UL,0xACB09DC8L,0x48957202L,0xE75F6327L,8UL,4294967290UL},{4294967289UL,0x9D5ECBE2L,0xB4DC75B2L,1UL,0x912460D4L,0x9A00E7A8L},{4294967293UL,0UL,0xBE96E642L,0x462F0657L,1UL,1UL}},{{0UL,0xBE808619L,1UL,4294967295UL,4294967295UL,0xDB8DD240L},{0x9D5ECBE2L,0xC452CB20L,4294967290UL,4294967295UL,0UL,0x8ED0E527L},{0xFF6A6F7FL,0xB4DC75B2L,0UL,0UL,0xDB8DD240L,0x3C4930A9L},{1UL,4294967289UL,0xB4DC75B2L,4294967295UL,1UL,1UL},{0x9A00E7A8L,6UL,0xDA13B45BL,0x9D5ECBE2L,0xDF0A7BC6L,0x77E7D222L},{0xD1BB123DL,0x33181A39L,0xE4BE7F61L,0x48957202L,0xA87EBE36L,0xC4CAD261L}},{{0x462F0657L,4294967295UL,0x03283455L,0x03283455L,4294967295UL,0x462F0657L},{4294967290UL,0xB4DC75B2L,0xBA44DB36L,4294967295UL,0x8F1D4CABL,0xFF6A6F7FL},{0xFDD9B1EEL,4294967287UL,0xACB09DC8L,1UL,1UL,0x7CD0BF88L},{0xFDD9B1EEL,0xE0A40FD2L,1UL,4294967295UL,1UL,0x5EDB8BE2L},{4294967290UL,0x8F1D4CABL,0xDF0A7BC6L,0x03283455L,0x25BC62C2L,0x07CE13FBL},{0x462F0657L,0UL,0x69ADC509L,0x48957202L,0x6C8C352AL,0xED48E4B8L}},{{0xD1BB123DL,0xACB09DC8L,1UL,0x9D5ECBE2L,1UL,4294967295UL},{0x9A00E7A8L,0x8ED0E527L,0xCD61C992L,4294967295UL,0x2C1D3B67L,0UL},{0x36EE149BL,4UL,0x41331432L,0xA63E400FL,0xA6EC6CEEL,4294967295UL},{0xE4BE7F61L,0xACB09DC8L,0x77E7D222L,0x4E106F96L,0x64F4DC61L,4294967287UL},{1UL,0x37587139L,4294967295UL,0UL,1UL,0x7CD0BF88L},{4294967295UL,0UL,0x912460D4L,4294967293UL,0xDF0A7BC6L,4294967295UL}}};
static int32_t g_2449 = 0x740A826DL;
static int32_t g_2451 = 8L;
static const int8_t g_2462 = 1L;
static int32_t * const g_2472 = (void*)0;
static int32_t * const *g_2471 = &g_2472;
static const uint64_t g_2526 = 0UL;
static int8_t g_2579[1][1] = {{0L}};
static int64_t **g_2601 = &g_1254;
static int64_t ***g_2600[4][9][1] = {{{&g_2601},{&g_2601},{(void*)0},{&g_2601},{&g_2601},{&g_2601},{&g_2601},{&g_2601},{&g_2601}},{{&g_2601},{&g_2601},{&g_2601},{(void*)0},{&g_2601},{&g_2601},{&g_2601},{&g_2601},{&g_2601}},{{&g_2601},{&g_2601},{&g_2601},{&g_2601},{(void*)0},{&g_2601},{&g_2601},{&g_2601},{&g_2601}},{{&g_2601},{&g_2601},{&g_2601},{&g_2601},{&g_2601},{(void*)0},{&g_2601},{&g_2601},{&g_2601}}};
static int64_t ****g_2599[2] = {&g_2600[2][6][0],&g_2600[2][6][0]};
static volatile union U0 g_2654 = {0x6FFCF7B3AA694168LL};/* VOLATILE GLOBAL g_2654 */
static volatile uint64_t g_2662 = 0x074791866EBD1448LL;/* VOLATILE GLOBAL g_2662 */
static int8_t g_2665 = 0x85L;
static uint16_t ***g_2709 = &g_113;
static union U0 g_2738[6][3] = {{{0xA67DB924B90C254BLL},{6L},{1L}},{{0xA67DB924B90C254BLL},{0xA67DB924B90C254BLL},{6L}},{{0L},{6L},{6L}},{{6L},{-1L},{1L}},{{0L},{-1L},{0L}},{{0xA67DB924B90C254BLL},{6L},{1L}}};
static volatile uint64_t * volatile ** volatile * volatile g_2746 = (void*)0;/* VOLATILE GLOBAL g_2746 */
static volatile union U0 ** volatile g_2752[8][7] = {{&g_1943,&g_1943,&g_1943,&g_1943,(void*)0,&g_1943,&g_1943},{&g_1943,&g_1943,&g_1943,(void*)0,&g_1943,&g_1943,(void*)0},{&g_1943,&g_1943,&g_1943,(void*)0,(void*)0,&g_1943,&g_1943},{&g_1943,&g_1943,(void*)0,&g_1943,&g_1943,&g_1943,&g_1943},{&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943},{&g_1943,(void*)0,&g_1943,&g_1943,&g_1943,&g_1943,(void*)0},{&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943},{(void*)0,(void*)0,&g_1943,(void*)0,&g_1943,&g_1943,&g_1943}};
static volatile union U0 ** volatile g_2754[10] = {&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943,&g_1943};
static union U0 g_2774 = {0x2B56A553EE9ABB07LL};/* VOLATILE GLOBAL g_2774 */
static volatile int32_t g_2805 = 3L;/* VOLATILE GLOBAL g_2805 */
static volatile uint64_t * volatile ** volatile * volatile * volatile g_2817 = (void*)0;/* VOLATILE GLOBAL g_2817 */
static const int16_t ***g_2820 = (void*)0;
static const int16_t ****g_2819 = &g_2820;
static uint8_t g_2858 = 0xB5L;


/* --- FORWARD DECLARATIONS --- */
static uint32_t  func_1(void);
static int32_t  func_9(uint64_t  p_10, uint64_t  p_11, const int8_t  p_12);
static int16_t  func_15(uint64_t  p_16, int32_t  p_17, int64_t  p_18, int16_t  p_19);
static uint64_t  func_20(int8_t  p_21, uint16_t  p_22, int32_t  p_23, uint64_t  p_24, const uint32_t  p_25);
static int16_t  func_26(int8_t  p_27);
static uint16_t  func_30(uint64_t  p_31, int16_t  p_32, uint8_t  p_33);
static int64_t  func_46(const int16_t * p_47, uint32_t  p_48, uint16_t  p_49, int16_t * p_50, uint16_t  p_51);
static union U0  func_62(uint8_t  p_63, uint32_t  p_64);
static uint8_t  func_65(uint16_t  p_66, int16_t * p_67, uint16_t * p_68, int8_t  p_69, uint32_t * p_70);
static uint8_t  func_75(int32_t  p_76, int16_t  p_77, uint16_t * p_78, uint16_t  p_79);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_3 g_6 g_54 g_111 g_1342 g_2449 g_147 g_1112 g_778 g_1114 g_1115 g_462 g_85 g_86 g_1790 g_1791 g_236 g_158 g_103 g_113 g_1341 g_2451 g_1254 g_108 g_1144 g_2236 g_2237 g_1742 g_615.f0 g_479 g_118 g_1781 g_1993 g_1142 g_2178 g_390 g_1783 g_505 g_674 g_1942 g_1943 g_615 g_2805 g_2746 g_2819 g_436 g_1347 g_879.f0 g_2858 g_2601 g_2709 g_2423
 * writes: g_3 g_6 g_54 g_111 g_939 g_2449 g_147 g_103 g_158 g_108 g_1144 g_479 g_118 g_2579 g_1142 g_2599 g_86 g_1993 g_194 g_236 g_363 g_2746 g_2774.f1 g_778 g_134
 */
static uint32_t  func_1(void)
{ /* block id: 0 */
    uint32_t l_1355[10][8][3] = {{{0x0A0FA5B0L,0x0A0FA5B0L,0UL},{0xD42D405AL,0xEAD802FFL,0xE9039220L},{4294967290UL,0UL,0xCB2669A8L},{0xDF02A148L,3UL,0x9367E9BEL},{0x3D2E8092L,4294967290UL,0xCB2669A8L},{0x82781D86L,0x7DD44039L,0xE9039220L},{0x253180ECL,0x3AA7F1A4L,0UL},{4294967287UL,1UL,0x6B08B1A0L}},{{0xA5D81366L,0xEA990341L,0x37B75D98L},{0x14D7F4A5L,0xDF02A148L,4UL},{4294967287UL,0xEA990341L,0x71A1565EL},{0xAFE2E381L,1UL,0x7951B812L},{0xEA990341L,0x3AA7F1A4L,0xBE06FEF7L},{0xEAD802FFL,0x7DD44039L,4294967295UL},{0x1A2EC656L,9UL,0x481B5B79L},{0x93AEFA9AL,4294967295UL,0xD42D405AL}},{{0x1A2EC656L,0UL,0x3AA7F1A4L},{4294967295UL,4294967295UL,3UL},{0xE2798800L,4294967293UL,0UL},{4294967287UL,1UL,0x14D7F4A5L},{0UL,3UL,1UL},{4294967295UL,4294967287UL,0x14D7F4A5L},{0x22507994L,2UL,0UL},{0x823B9999L,0x93AEFA9AL,3UL}},{{0x8E7A0475L,7UL,0x3AA7F1A4L},{1UL,4294967288UL,0xD42D405AL},{4294967295UL,0UL,0x481B5B79L},{6UL,4294967288UL,0xAFE2E381L},{9UL,7UL,4294967295UL},{4294967288UL,0x93AEFA9AL,0x96B8C911L},{4294967293UL,2UL,4294967290UL},{0xA08AF7A6L,4294967287UL,0xA8E78851L}},{{4294967295UL,3UL,0xEA990341L},{0xA08AF7A6L,1UL,4294967291UL},{4294967293UL,4294967293UL,0x0D8AEB47L},{4294967288UL,4294967295UL,6UL},{9UL,0UL,0x3D2E8092L},{6UL,4294967295UL,0x15CDEFD3L},{4294967295UL,9UL,0x3D2E8092L},{1UL,0UL,6UL}},{{0x8E7A0475L,4294967295UL,0x0D8AEB47L},{0x823B9999L,0x11C662ADL,4294967291UL},{0x22507994L,0xE2798800L,0xEA990341L},{4294967295UL,6UL,0xA8E78851L},{0UL,0xE2798800L,4294967290UL},{4294967287UL,0x11C662ADL,0x96B8C911L},{0xE2798800L,4294967295UL,4294967295UL},{4294967295UL,0UL,0xAFE2E381L}},{{0x1A2EC656L,9UL,0x481B5B79L},{0x93AEFA9AL,4294967295UL,0xD42D405AL},{0x1A2EC656L,0UL,0x3AA7F1A4L},{4294967295UL,4294967295UL,3UL},{0xE2798800L,4294967293UL,0UL},{4294967287UL,1UL,0x14D7F4A5L},{0UL,3UL,1UL},{4294967295UL,4294967287UL,0x14D7F4A5L}},{{0x22507994L,2UL,0UL},{0x823B9999L,0x93AEFA9AL,3UL},{0x8E7A0475L,7UL,0x3AA7F1A4L},{1UL,4294967288UL,0xD42D405AL},{4294967295UL,0UL,0x481B5B79L},{6UL,4294967288UL,0xAFE2E381L},{9UL,7UL,4294967295UL},{4294967288UL,0x93AEFA9AL,0x96B8C911L}},{{4294967293UL,2UL,4294967290UL},{0xA08AF7A6L,4294967287UL,0xA8E78851L},{4294967295UL,3UL,0xEA990341L},{0xA08AF7A6L,1UL,4294967291UL},{4294967293UL,4294967293UL,0x0D8AEB47L},{4294967288UL,4294967295UL,6UL},{9UL,0UL,0x3D2E8092L},{6UL,4294967295UL,0x15CDEFD3L}},{{4294967295UL,9UL,0x3D2E8092L},{1UL,0UL,6UL},{0x8E7A0475L,4294967295UL,0x0D8AEB47L},{0x823B9999L,0x11C662ADL,4294967291UL},{0x22507994L,0xE2798800L,0xEA990341L},{4294967295UL,6UL,0xBF75ADBBL},{0xCB2669A8L,7UL,9UL},{0x322F416CL,2UL,0UL}}};
    uint16_t **l_2549[7][7][1] = {{{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85}},{{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85}},{{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85}},{{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85}},{{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85}},{{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85}},{{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85},{&g_85}}};
    int32_t l_2562[9][3][9] = {{{2L,(-3L),0xDC2BA1C7L,0xE190164AL,(-1L),0x64DB512FL,3L,0xFBD02CD5L,(-1L)},{0x4DBC5A0AL,1L,(-1L),(-3L),(-7L),6L,0xD466A016L,0L,0xF30CF999L},{(-5L),1L,(-5L),0xF3D0493BL,0x64DB512FL,0x64DB512FL,0xF3D0493BL,(-5L),1L}},{{0xD92E2E45L,6L,(-4L),0xF3D0493BL,0x205441DCL,(-1L),9L,1L,5L},{0x796F63ACL,5L,0x64DB512FL,(-3L),0x9B802A2FL,0xF30CF999L,0xAFD065C9L,1L,1L},{0x7F4A1E99L,6L,(-3L),0xE190164AL,6L,1L,0x27EA404DL,1L,1L}},{{3L,1L,1L,8L,0xFBD02CD5L,(-5L),0x7F4A1E99L,(-3L),5L},{8L,1L,1L,3L,(-1L),(-7L),0x27EA404DL,0x9B802A2FL,1L},{0xE190164AL,(-3L),6L,0x7F4A1E99L,(-1L),1L,0xAFD065C9L,5L,0xF30CF999L}},{{(-3L),0x64DB512FL,5L,0x796F63ACL,0xFBD02CD5L,0L,9L,(-1L),(-1L)},{0xF3D0493BL,(-4L),6L,0xD92E2E45L,6L,(-4L),0xF3D0493BL,0x205441DCL,(-1L)},{0xF3D0493BL,(-5L),1L,(-5L),0x9B802A2FL,1L,0xD466A016L,(-7L),1L}},{{(-3L),(-1L),1L,0x4DBC5A0AL,0x205441DCL,0x9B802A2FL,3L,0x205441DCL,0xF7A7125EL},{0xE190164AL,0xDC2BA1C7L,(-3L),2L,0x64DB512FL,0x9B802A2FL,0xD92E2E45L,(-1L),6L},{8L,0xF7A7125EL,0x64DB512FL,0xA0BE485BL,(-7L),1L,(-3L),5L,0L}},{{9L,5L,0x64C13B67L,1L,2L,0x64C13B67L,(-1L),1L,(-6L)},{(-3L),5L,1L,0x9B802A2FL,1L,(-1L),6L,(-6L),(-10L)},{(-1L),(-1L),0x562EF163L,0xDC2BA1C7L,(-6L),0x271BB696L,0L,0x271BB696L,(-6L)}},{{0L,1L,1L,0L,0x64C13B67L,(-1L),0L,6L,(-1L)},{0xDC2BA1C7L,0x562EF163L,(-1L),(-1L),1L,1L,6L,(-3L),1L},{0x9B802A2FL,1L,5L,(-3L),0x64C13B67L,6L,(-1L),1L,(-1L)}},{{1L,0x64C13B67L,5L,9L,(-6L),0x507706C7L,0x6B4E15A3L,0L,6L},{(-5L),(-1L),(-1L),1L,1L,2L,0L,0xE5C80887L,2L},{1L,(-6L),1L,0x205441DCL,2L,(-1L),9L,0xE5C80887L,0x562EF163L}},{{0x9B802A2FL,(-3L),0x562EF163L,0x6B4E15A3L,(-1L),1L,(-1L),0L,0x507706C7L},{0xDC2BA1C7L,0x271BB696L,1L,1L,(-1L),(-1L),1L,1L,0x271BB696L},{0L,1L,0x64C13B67L,1L,(-10L),2L,0x64DB512FL,(-3L),0L}}};
    int64_t **l_2597 = (void*)0;
    int64_t ***l_2596 = &l_2597;
    int64_t ****l_2595[7] = {&l_2596,&l_2596,&l_2596,&l_2596,&l_2596,&l_2596,&l_2596};
    int64_t l_2649[2][1];
    int8_t ** const *l_2653 = (void*)0;
    const int16_t l_2706 = (-1L);
    const int64_t l_2797 = 4L;
    int64_t ***l_2806 = (void*)0;
    int16_t l_2816 = (-1L);
    const int16_t ****l_2821 = (void*)0;
    int64_t l_2861[4][3][2] = {{{0x6AAAE138C7D021E6LL,5L},{0xEC640093D9BAE1A4LL,0xE91A89F293DDF9D1LL},{0xEC640093D9BAE1A4LL,5L}},{{0x6AAAE138C7D021E6LL,0xEC640093D9BAE1A4LL},{5L,0xE91A89F293DDF9D1LL},{0x5F4FEB101B36D8CDLL,0x5F4FEB101B36D8CDLL}},{{0x6AAAE138C7D021E6LL,0x5F4FEB101B36D8CDLL},{0x5F4FEB101B36D8CDLL,0xE91A89F293DDF9D1LL},{5L,0xEC640093D9BAE1A4LL}},{{0x6AAAE138C7D021E6LL,5L},{0xEC640093D9BAE1A4LL,0xE91A89F293DDF9D1LL},{0xEC640093D9BAE1A4LL,5L}}};
    union U0 *l_2871 = &g_156;
    int i, j, k;
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 1; j++)
            l_2649[i][j] = (-4L);
    }
    for (g_3 = (-9); (g_3 >= (-18)); g_3 = safe_sub_func_uint64_t_u_u(g_3, 1))
    { /* block id: 3 */
        uint32_t l_1354 = 0xC88846FFL;
        for (g_6[7][0][3] = (-17); (g_6[7][0][3] == 11); ++g_6[7][0][3])
        { /* block id: 6 */
            int32_t l_13 = 0x85DC1B6EL;
            uint32_t l_14 = 0x2F7C629CL;
        }
        return l_1355[8][7][2];
    }
    for (g_54 = 15; (g_54 <= 26); ++g_54)
    { /* block id: 1165 */
        const uint64_t *l_2525 = &g_2526;
        const uint64_t **l_2524 = &l_2525;
        const uint64_t ***l_2523 = &l_2524;
        int32_t l_2535 = (-1L);
        uint16_t l_2564 = 0xF353L;
        uint32_t l_2639 = 0x873B4EECL;
        uint64_t l_2731[9][5][3] = {{{7UL,0x88742B6D261E464BLL,3UL},{0xA0BAE1A66F6F8B31LL,0xC8F80B0F98DF71B5LL,0UL},{0x85F96040AAB1C3C9LL,0UL,0UL},{0x755148FB7D61D633LL,3UL,3UL},{0xABB08929981376CFLL,18446744073709551614UL,18446744073709551615UL}},{{3UL,0x67864B7A55BBC4BELL,0xABB08929981376CFLL},{18446744073709551615UL,0xF12AF9B7A42B928CLL,0x9CCED615219D6C11LL},{0x1A1D81D62C3C3448LL,6UL,0x755148FB7D61D633LL},{0xC8F80B0F98DF71B5LL,0xF12AF9B7A42B928CLL,0UL},{0xDF1EF3BB995AF2BFLL,0x67864B7A55BBC4BELL,18446744073709551615UL}},{{0x1CF8D9BAC5D67E79LL,18446744073709551614UL,0xA0BAE1A66F6F8B31LL},{0x88742B6D261E464BLL,3UL,18446744073709551610UL},{3UL,0UL,6UL},{3UL,0xC8F80B0F98DF71B5LL,0x1CF8D9BAC5D67E79LL},{0x88742B6D261E464BLL,0x88742B6D261E464BLL,0x1A1D81D62C3C3448LL}},{{0x1CF8D9BAC5D67E79LL,0x85F96040AAB1C3C9LL,3UL},{0xDF1EF3BB995AF2BFLL,0x3BEBC221F69BA88BLL,0x9C5951E3A4B9FE7ALL},{18446744073709551615UL,3UL,18446744073709551614UL},{0x88742B6D261E464BLL,6UL,3UL},{18446744073709551609UL,18446744073709551614UL,0x755148FB7D61D633LL}},{{0x755148FB7D61D633LL,7UL,0x88742B6D261E464BLL},{0x5C5E7CFC8E2312E5LL,0x755148FB7D61D633LL,0UL},{3UL,18446744073709551610UL,0x9CCED615219D6C11LL},{0xC8F80B0F98DF71B5LL,18446744073709551610UL,0UL},{18446744073709551615UL,0x755148FB7D61D633LL,18446744073709551615UL}},{{18446744073709551615UL,7UL,18446744073709551610UL},{0x1A1D81D62C3C3448LL,18446744073709551614UL,0xDF1EF3BB995AF2BFLL},{0x2DA926B870DFCCB5LL,6UL,3UL},{18446744073709551610UL,3UL,0xAA5E398C09A18B91LL},{0x2DA926B870DFCCB5LL,0x1CF8D9BAC5D67E79LL,0x5C5E7CFC8E2312E5LL}},{{0x1A1D81D62C3C3448LL,0xC8F80B0F98DF71B5LL,18446744073709551614UL},{18446744073709551615UL,7UL,0x3BEBC221F69BA88BLL},{18446744073709551615UL,18446744073709551615UL,7UL},{0xC8F80B0F98DF71B5LL,0xDF1EF3BB995AF2BFLL,7UL},{3UL,0x3BEBC221F69BA88BLL,0x3BEBC221F69BA88BLL}},{{0x5C5E7CFC8E2312E5LL,0x2DA926B870DFCCB5LL,18446744073709551614UL},{0x755148FB7D61D633LL,0x9C5951E3A4B9FE7ALL,0x5C5E7CFC8E2312E5LL},{18446744073709551609UL,0x67864B7A55BBC4BELL,0xAA5E398C09A18B91LL},{0x88742B6D261E464BLL,0x9CCED615219D6C11LL,3UL},{18446744073709551615UL,0x67864B7A55BBC4BELL,0xDF1EF3BB995AF2BFLL}},{{6UL,0x9C5951E3A4B9FE7ALL,18446744073709551610UL},{0UL,0x2DA926B870DFCCB5LL,18446744073709551615UL},{7UL,0x3BEBC221F69BA88BLL,0UL},{0x3BEBC221F69BA88BLL,0xDF1EF3BB995AF2BFLL,0x9CCED615219D6C11LL},{0x3BEBC221F69BA88BLL,18446744073709551615UL,0UL}}};
        int32_t ***l_2741[2][7][1] = {{{&g_1791},{&g_1791},{&g_1791},{&g_1791},{&g_1791},{&g_1791},{&g_1791}},{{&g_1791},{&g_1791},{&g_1791},{&g_1791},{&g_1791},{&g_1791},{&g_1791}}};
        int64_t ***l_2807 = &g_2601;
        const int8_t l_2815[9][3] = {{0xE2L,0x46L,0x46L},{0x79L,0xEBL,0L},{0xE2L,0x46L,0x46L},{0x79L,0xEBL,0L},{0xE2L,0x46L,0x46L},{0x79L,0xEBL,0L},{0xE2L,0x46L,0x46L},{0x79L,0xEBL,0L},{0xE2L,0x46L,0x46L}};
        union U0 *l_2844 = &g_1729;
        int i, j, k;
        for (g_111 = 2; (g_111 >= 0); g_111 -= 1)
        { /* block id: 1168 */
            int64_t l_2538 = 0L;
            int32_t l_2563 = 0x560898B5L;
            union U0 ***l_2582 = (void*)0;
            uint8_t l_2625[6] = {1UL,0UL,0UL,1UL,0UL,0UL};
            int64_t ** const *l_2627[10][2][5] = {{{&l_2597,&l_2597,(void*)0,&g_2601,&l_2597},{&l_2597,&l_2597,&l_2597,&g_2601,&l_2597}},{{&l_2597,&l_2597,&g_2601,&l_2597,&l_2597},{&l_2597,&l_2597,&g_2601,(void*)0,&l_2597}},{{&l_2597,&g_2601,&l_2597,&l_2597,&g_2601},{&l_2597,&l_2597,(void*)0,&g_2601,&l_2597}},{{&l_2597,&l_2597,&l_2597,&g_2601,&l_2597},{&l_2597,&l_2597,&g_2601,&l_2597,&l_2597}},{{&l_2597,&l_2597,&g_2601,(void*)0,&l_2597},{&l_2597,&g_2601,&l_2597,&l_2597,&g_2601}},{{&l_2597,&l_2597,(void*)0,&g_2601,&l_2597},{&l_2597,&l_2597,&l_2597,&g_2601,&l_2597}},{{(void*)0,(void*)0,&l_2597,&l_2597,&l_2597},{(void*)0,(void*)0,&l_2597,&l_2597,&g_2601}},{{(void*)0,&g_2601,&g_2601,&g_2601,&g_2601},{(void*)0,&g_2601,&l_2597,&l_2597,(void*)0}},{{(void*)0,&l_2597,&l_2597,&l_2597,(void*)0},{(void*)0,(void*)0,&l_2597,&l_2597,&l_2597}},{{(void*)0,(void*)0,&l_2597,&l_2597,&g_2601},{(void*)0,&g_2601,&g_2601,&g_2601,&g_2601}}};
            int64_t ** const **l_2626 = &l_2627[8][0][3];
            int16_t l_2648 = 0xB035L;
            int8_t l_2693 = (-1L);
            int8_t ****l_2742 = (void*)0;
            int32_t l_2745 = 0x120513A7L;
            int32_t l_2798 = 0xC1969694L;
            int64_t ***l_2830 = (void*)0;
            uint64_t l_2833 = 0x2EEFBC2B218D1CBBLL;
            uint8_t l_2868 = 0UL;
            int i, j, k;
            for (g_939 = 0; (g_939 <= 2); g_939 += 1)
            { /* block id: 1171 */
                uint64_t ** const l_2548 = &g_1342;
                int32_t l_2550[1][3][5];
                uint8_t *l_2561[2][2][9] = {{{&g_738,&g_2145,&g_2145,&g_2145,&g_738,&g_738,&g_1347,&g_2145,&g_2145},{&g_2145,&g_738,&g_738,&g_2145,&g_738,&g_738,&g_2145,(void*)0,&g_2145}},{{&g_2145,&g_2145,&g_2145,&g_738,(void*)0,&g_738,&g_2145,&g_2145,&g_2145},{&g_738,&g_738,&g_2145,(void*)0,&g_1347,&g_738,&g_1347,(void*)0,&g_2145}}};
                uint64_t *l_2565 = &g_1144;
                const uint64_t l_2624 = 1UL;
                int16_t l_2632[8] = {0x5D3DL,0x5D3DL,0x5D3DL,0x5D3DL,0x5D3DL,0x5D3DL,0x5D3DL,0x5D3DL};
                int32_t *l_2650 = &l_2550[0][0][2];
                uint16_t * const *l_2688 = &g_85;
                uint16_t * const **l_2687 = &l_2688;
                const int16_t *l_2720[10] = {&g_802,&g_802,&g_802,&g_802,&g_802,&g_802,&g_802,&g_802,&g_802,&g_802};
                const int16_t **l_2719[5];
                int32_t l_2732 = (-9L);
                int i, j, k;
                for (i = 0; i < 1; i++)
                {
                    for (j = 0; j < 3; j++)
                    {
                        for (k = 0; k < 5; k++)
                            l_2550[i][j][k] = 0x2E6C3A0CL;
                    }
                }
                for (i = 0; i < 5; i++)
                    l_2719[i] = &l_2720[1];
                for (g_2449 = 0; (g_2449 <= 2); g_2449 += 1)
                { /* block id: 1174 */
                    const uint64_t *l_2522[5];
                    const uint64_t **l_2521 = &l_2522[4];
                    const uint64_t ***l_2520 = &l_2521;
                    int32_t l_2539 = 1L;
                    int i;
                    for (i = 0; i < 5; i++)
                        l_2522[i] = &g_1144;
                    for (g_147 = 0; (g_147 <= 2); g_147 += 1)
                    { /* block id: 1177 */
                        int i, j, k;
                        (***g_1790) ^= ((((*g_1342) = (&g_1341 == (l_2523 = l_2520))) < (safe_mod_func_int64_t_s_s(l_1355[(g_2449 + 3)][(g_111 + 2)][g_147], (safe_mul_func_uint16_t_u_u(((((safe_sub_func_uint32_t_u_u(((*g_1112) < (l_2535 != ((l_2535 ^ (l_1355[9][7][1] > (safe_lshift_func_int8_t_s_u(l_2538, 3)))) == (**g_1114)))), 4294967295UL)) , 0L) && l_1355[9][1][2]) || 0xF6D4AE69L), (*g_85)))))) >= l_2539);
                    }
                }
                if ((((***g_2236) = ((((*l_2565) &= ((((*g_1254) &= (safe_sub_func_uint8_t_u_u((((safe_mul_func_uint8_t_u_u((l_2563 = (l_2562[4][2][4] |= ((safe_add_func_uint16_t_u_u(((*g_1342) > ((0L <= (((safe_add_func_uint8_t_u_u((l_2548 != (void*)0), ((l_2549[4][4][0] == (void*)0) && (l_2550[0][0][3] != (safe_add_func_uint16_t_u_u((**g_113), ((safe_mul_func_uint16_t_u_u((safe_mul_func_int64_t_s_s(((safe_lshift_func_uint32_t_u_u((safe_mod_func_uint64_t_u_u((**g_1341), l_2538)), g_2451)) <= 1L), 0x24A1485916AA95A9LL)), 65528UL)) , l_2550[0][1][2]))))))) != l_2550[0][0][3]) < l_2535)) < 251UL)), (**g_1114))) , l_2535))), 248UL)) , l_2550[0][0][3]) , 0xC9L), 0UL))) != l_2564) <= 4L)) < 0UL) < l_2564)) || l_2535))
                { /* block id: 1188 */
                    int8_t *l_2578 = &g_2579[0][0];
                    union U0 ***l_2581[3];
                    union U0 ****l_2580[1];
                    int64_t *l_2585 = (void*)0;
                    int64_t *l_2586 = (void*)0;
                    int64_t *l_2587 = &g_1142[0][0];
                    int64_t *****l_2598[5][1][5] = {{{&l_2595[5],(void*)0,&l_2595[5],&l_2595[5],(void*)0}},{{&l_2595[5],(void*)0,(void*)0,&l_2595[5],(void*)0}},{{(void*)0,(void*)0,&l_2595[2],(void*)0,(void*)0}},{{(void*)0,&l_2595[5],(void*)0,(void*)0,&l_2595[5]}},{{(void*)0,&l_2595[5],&l_2595[5],(void*)0,&l_2595[5]}}};
                    int32_t l_2613 = 0x60507924L;
                    int32_t l_2616[10] = {(-5L),(-5L),(-5L),(-5L),(-5L),(-5L),(-5L),(-5L),(-5L),(-5L)};
                    int i, j, k;
                    for (i = 0; i < 3; i++)
                        l_2581[i] = &g_513;
                    for (i = 0; i < 1; i++)
                        l_2580[i] = &l_2581[0];
                    if (l_2550[0][0][3])
                        break;
                    (*g_236) ^= ((*g_1254) ^ ((*l_2587) = (safe_rshift_func_uint16_t_u_s((safe_mul_func_int16_t_s_s((!((~g_615.f0) > l_2550[0][0][3])), (safe_sub_func_int16_t_s_s(((l_2535 & ((safe_rshift_func_uint64_t_u_s((safe_div_func_int8_t_s_s(((*l_2578) = ((**g_2237) = (**g_2237))), 0x3AL)), 13)) || (((l_2582 = &g_513) == ((safe_rshift_func_uint32_t_u_u(2UL, 4)) , &g_513)) || l_2564))) , l_2550[0][0][3]), 0xB370L)))), l_2550[0][0][4]))));
                    (***g_1790) = (l_2562[4][2][4] = (~(safe_mod_func_int8_t_s_s((safe_mod_func_uint16_t_u_u(((safe_add_func_int16_t_s_s(((g_2599[1] = l_2595[5]) != (((4294967292UL & (!((*g_85) = (0UL == l_2538)))) , (safe_add_func_uint8_t_u_u(((safe_add_func_int32_t_s_s((l_2535 |= (safe_mod_func_uint8_t_u_u(((safe_lshift_func_uint16_t_u_s((safe_mul_func_int16_t_s_s(l_2613, (***g_1781))), (((safe_div_func_uint16_t_u_u((g_1993++), (*g_1115))) , (((*g_2178) = ((+(safe_lshift_func_uint64_t_u_s(((safe_sub_func_int64_t_s_s(((*l_2587) &= (l_2550[0][0][3] , (-3L))), 0x09EC394CD77A07A2LL)) < (***g_1790)), (*g_1254)))) || (***g_1790))) , (void*)0)) != &l_2595[0]))) < g_2449), l_2624))), (***g_1790))) >= l_2625[3]), l_2616[9]))) , l_2626)), (-8L))) & 0x28E9F85EL), l_2564)), l_2625[3]))));
                }
                else
                { /* block id: 1203 */
                    for (l_2538 = 1; (l_2538 <= 4); l_2538 += 1)
                    { /* block id: 1206 */
                        int i;
                        return g_390[(g_111 + 1)];
                    }
                    for (g_194 = 0; (g_194 <= 2); g_194 += 1)
                    { /* block id: 1211 */
                        (**g_1790) = (*g_1783);
                    }
                }
                (*l_2650) &= ((safe_sub_func_uint16_t_u_u(((safe_lshift_func_int8_t_s_s((0L ^ l_2632[7]), 5)) , (((safe_add_func_uint8_t_u_u(((l_2535 = l_2538) ^ (((safe_rshift_func_uint16_t_u_u((l_2564 , (((safe_add_func_int32_t_s_s((((l_2639 || (safe_add_func_uint32_t_u_u((safe_rshift_func_uint64_t_u_s((((l_2563 = ((*g_236) = (safe_unary_minus_func_uint64_t_u(((*l_2565) ^= ((**g_1341) |= l_2632[6])))))) == ((~g_505[5][0][0]) ^ (safe_div_func_uint8_t_u_u(l_2538, 0xF7L)))) || g_674), l_2648)), l_2625[3]))) , 0x8E305A38B45E4183LL) < l_2632[7]), l_2564)) && 0xB7L) > (**g_113))), l_2625[3])) != l_2632[7]) , l_2649[0][0])), (-4L))) > 0UL) , 0x6531L)), l_1355[2][0][0])) | 65526UL);
                for (g_363 = 0; (g_363 <= 2); g_363 += 1)
                { /* block id: 1223 */
                    int64_t **l_2659 = &g_1254;
                    int32_t l_2660 = 0x5E799363L;
                    int8_t *l_2663 = &g_2579[0][0];
                    int8_t *l_2664 = &g_2665;
                    int32_t *l_2666 = &g_2451;
                    uint64_t l_2744[10] = {0UL,0UL,0UL,0UL,0UL,0UL,0UL,0UL,0UL,0UL};
                    uint32_t *l_2749 = &g_39;
                    uint64_t **l_2758 = (void*)0;
                    int i;
                }
            }
            (***g_1790) |= (((safe_lshift_func_uint32_t_u_s(1UL, ((**g_1942) , (safe_mul_func_uint64_t_u_u((g_2805 <= ((l_2806 == l_2807) ^ (((**g_1341) && ((safe_sub_func_uint8_t_u_u((((safe_div_func_uint8_t_u_u((~l_2538), (safe_sub_func_int64_t_s_s(0xBDE69AA5CA2923B0LL, (*g_1342))))) , 0x7C337AA3L) , l_2798), l_2745)) == (*g_1254))) != l_2815[8][2]))), l_2745))))) , l_2816) , l_2706);
            if (l_2649[0][0])
            { /* block id: 1275 */
                volatile uint64_t * volatile ** volatile * volatile *l_2818[10] = {&g_2746,&g_2746,&g_2746,&g_2746,&g_2746,&g_2746,&g_2746,&g_2746,&g_2746,&g_2746};
                int i;
                for (g_3 = 4; (g_3 >= 1); g_3 -= 1)
                { /* block id: 1278 */
                    int i, j, k;
                    return g_6[(g_111 + 3)][g_3][g_3];
                }
                if ((***g_1790))
                    continue;
                (***g_1790) |= 0xA9779181L;
                g_2746 = g_2746;
            }
            else
            { /* block id: 1284 */
                int32_t l_2828 = 0x58D9F5DEL;
                int64_t ***l_2829 = &l_2597;
                int32_t l_2834 = (-5L);
                union U0 *l_2843 = &g_2774;
                int32_t l_2866[10] = {0xA9361AE8L,0xA9361AE8L,5L,0xA9361AE8L,0xA9361AE8L,5L,0xA9361AE8L,0xA9361AE8L,5L,0xA9361AE8L};
                uint32_t *l_2867 = &g_134;
                int i;
                if ((((l_2821 = g_2819) != (void*)0) != (((((safe_lshift_func_uint32_t_u_u((safe_mod_func_uint8_t_u_u((0x391FL || 0xF938L), (l_2798 |= ((safe_sub_func_uint8_t_u_u((l_2562[4][2][4] = l_2828), ((l_2830 = l_2829) == (void*)0))) & 0x04528791L)))), (safe_rshift_func_int32_t_s_u(0x478BF7DDL, 4)))) && l_2625[3]) ^ l_2828) , (**g_2237)) , l_2833)))
                { /* block id: 1289 */
                    int8_t l_2835 = 0x56L;
                    uint64_t l_2838 = 18446744073709551615UL;
                    (*g_236) |= l_2834;
                    for (g_939 = 0; (g_939 <= 0); g_939 += 1)
                    { /* block id: 1293 */
                        int32_t l_2836 = (-4L);
                        int32_t l_2837 = 0x39F367BAL;
                        int i, j, k;
                        l_2838--;
                        (*g_436) &= 0L;
                    }
                    for (g_194 = (-2); (g_194 > 6); ++g_194)
                    { /* block id: 1299 */
                        l_2844 = l_2843;
                    }
                    for (g_1993 = (-16); (g_1993 != 20); g_1993 = safe_add_func_uint64_t_u_u(g_1993, 4))
                    { /* block id: 1304 */
                        if (l_2649[0][0])
                            break;
                    }
                }
                else
                { /* block id: 1307 */
                    for (g_2774.f1 = 16; (g_2774.f1 <= 25); g_2774.f1++)
                    { /* block id: 1310 */
                        return g_1347;
                    }
                    return g_879.f0;
                }
                (**g_1791) = 1L;
                (**g_1783) = (4294967295UL <= ((*l_2867) = (safe_mul_func_uint64_t_u_u(((**g_1341) |= ((((***g_2709) = (safe_rshift_func_uint32_t_u_u(((safe_lshift_func_uint32_t_u_u(l_2797, 9)) || ((safe_unary_minus_func_int32_t_s((l_2563 &= ((((**g_1783) <= g_1142[0][0]) , ((*g_1112) ^= (((g_2858 < ((*l_2807) == ((*l_2596) = (*l_2830)))) , ((safe_lshift_func_int64_t_s_u(l_2861[1][1][0], 41)) || (safe_rshift_func_uint64_t_u_u((safe_div_func_uint16_t_u_u((l_2816 , (***g_2709)), (***g_2709))), l_2861[1][1][0])))) < 65529UL))) & l_2834)))) , (***g_2709))), 12))) || l_2866[9]) == (*g_236))), l_2538))));
                l_2868--;
            }
            if (l_1355[8][7][2])
                break;
        }
        return g_778;
    }
    l_2871 = (void*)0;
    return g_2423[1][0][2];
}


/* ------------------------------------------ */
/* 
 * reads : g_1791 g_118 g_158 g_738 g_1341 g_1342 g_103 g_700 g_2 g_363 g_2299 g_1942 g_1943 g_615 g_39 g_128 g_108 g_1112 g_1114 g_1115 g_462 g_113 g_85 g_86 g_615.f0 g_674 g_2237 g_1742 g_479 g_99 g_879.f1 g_436 g_445.f0 g_1790 g_1254 g_2236 g_2423 g_2449 g_390 g_2451 g_1216 g_1789 g_236 g_2177 g_2178 g_194
 * writes: g_236 g_118 g_158 g_1216 g_363 g_738 g_103 g_1677 g_479 g_86 g_1112 g_39 g_879.f1 g_778 g_2 g_134 g_108 g_1477 g_2449 g_2451 g_2471
 */
static int32_t  func_9(uint64_t  p_10, uint64_t  p_11, const int8_t  p_12)
{ /* block id: 1042 */
    int32_t *l_2253 = (void*)0;
    uint16_t l_2269 = 0xC3FAL;
    int16_t *l_2286 = &g_778;
    int8_t l_2290 = 1L;
    uint8_t **l_2309 = &g_737[4];
    int64_t * const l_2330[1] = {&g_1428};
    uint16_t l_2403[7] = {0UL,65535UL,0UL,0UL,65535UL,0UL,0UL};
    int8_t ***l_2475 = &g_2237;
    int32_t *** const **l_2480[7] = {&g_1789[1],&g_1789[1],&g_1789[1],&g_1789[1],&g_1789[1],&g_1789[1],&g_1789[1]};
    int i;
lbl_2397:
    (*g_1791) = l_2253;
    for (g_118 = 0; (g_118 <= 3); g_118 += 1)
    { /* block id: 1046 */
        uint64_t * const * const **l_2293 = (void*)0;
        int64_t **l_2296[5] = {&g_1254,&g_1254,&g_1254,&g_1254,&g_1254};
        uint8_t * const *l_2308 = &g_737[2];
        union U0 ***l_2315 = &g_513;
        uint16_t *****l_2381 = &g_578;
        int32_t l_2447[10][9] = {{(-1L),0x2AEE829FL,8L,1L,1L,8L,0x2AEE829FL,(-1L),8L},{(-3L),(-1L),0L,0x136789F6L,0x136789F6L,1L,0xA47A8C7CL,3L,1L},{1L,(-1L),1L,0xC59E35A5L,0xC59E35A5L,1L,(-1L),1L,1L},{3L,0xA47A8C7CL,1L,0x136789F6L,0x136789F6L,1L,0xA47A8C7CL,3L,1L},{1L,(-1L),1L,0xC59E35A5L,0xC59E35A5L,1L,(-1L),1L,1L},{3L,0xA47A8C7CL,1L,0x136789F6L,0x136789F6L,1L,0xA47A8C7CL,3L,1L},{1L,(-1L),1L,0xC59E35A5L,0xC59E35A5L,1L,(-1L),1L,1L},{3L,0xA47A8C7CL,1L,0x136789F6L,0x136789F6L,1L,0xA47A8C7CL,3L,1L},{1L,(-1L),1L,0xC59E35A5L,0xC59E35A5L,1L,(-1L),1L,1L},{3L,0xA47A8C7CL,1L,0x136789F6L,0x136789F6L,1L,0xA47A8C7CL,3L,1L}};
        int32_t l_2507 = (-1L);
        const uint32_t l_2516 = 0x6B623827L;
        int i, j;
        g_158[(g_118 + 3)] = g_158[(g_118 + 1)];
        for (g_1216 = 6; (g_1216 >= 0); g_1216 -= 1)
        { /* block id: 1050 */
            int32_t l_2258 = 0xD0F2FE87L;
            int64_t l_2267 = (-9L);
            int16_t **l_2277 = &g_1112;
            int16_t l_2288 = 0x8A88L;
            int32_t *l_2312 = &l_2258;
            int64_t l_2313 = 9L;
            uint32_t *l_2314 = &g_39;
            union U0 *l_2329 = &g_905[5][4][2];
            union U0 * const *l_2328 = &l_2329;
            union U0 * const **l_2327 = &l_2328;
            union U0 * const ** const *l_2326 = &l_2327;
            uint16_t *l_2465 = (void*)0;
            int32_t *l_2469 = &g_651[1][4][1];
            int32_t * const *l_2468 = &l_2469;
            int32_t *** const ** const l_2479 = &g_1789[0];
            int i;
            for (g_363 = 3; (g_363 >= 0); g_363 -= 1)
            { /* block id: 1053 */
                uint8_t *l_2265 = &g_738;
                uint64_t *l_2270 = &g_1677;
                int8_t *l_2271 = &g_479;
                int32_t l_2272[4][10][3] = {{{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)}},{{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)}},{{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)}},{{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)},{0xA63D7FDFL,0xA63D7FDFL,0xA63D7FDFL},{(-1L),(-1L),(-1L)}}};
                int16_t ** const l_2276 = &g_1112;
                int32_t l_2289 = 0xDB194A10L;
                uint64_t ***l_2292 = (void*)0;
                uint64_t ****l_2291[3][9] = {{&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292},{&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292},{&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292,&l_2292}};
                int i, j, k;
                if ((safe_div_func_uint8_t_u_u(p_11, ((safe_rshift_func_int32_t_s_u(l_2258, 23)) && (safe_div_func_int8_t_s_s((p_12 & (safe_div_func_int32_t_s_s((2L && (safe_sub_func_int16_t_s_s((g_158[(g_118 + 3)] != ((((*l_2265) ^= p_12) && ((*l_2271) = (((safe_unary_minus_func_uint16_t_u((l_2267 || (((l_2258 |= ((*l_2270) = ((((((((**g_1341) = (**g_1341)) < (~l_2269)) == p_11) && p_11) <= 0x4641B43419109783LL) , p_11) == 5UL))) | p_11) ^ 4294967289UL)))) == g_158[(g_118 + 1)]) , p_10))) && 1L)), g_158[(g_118 + 3)]))), 0x4A26E329L))), 0xA4L))))))
                { /* block id: 1059 */
                    for (p_10 = 0; (p_10 <= 3); p_10 += 1)
                    { /* block id: 1062 */
                        return (*g_700);
                    }
                    if (p_10)
                        continue;
                }
                else
                { /* block id: 1066 */
                    int16_t *l_2287 = &g_462[1][2];
                    int i;
                    for (g_86 = 0; (g_86 <= 3); g_86 += 1)
                    { /* block id: 1069 */
                        uint32_t l_2275 = 1UL;
                        int i;
                        g_158[(g_363 + 1)] = (((l_2272[0][0][1] < (safe_lshift_func_int32_t_s_s((l_2275 , (l_2276 != l_2277)), (((safe_mod_func_uint8_t_u_u(g_158[(g_118 + 1)], (((safe_rshift_func_int8_t_s_s((0UL < (safe_rshift_func_uint16_t_u_u(p_12, 3))), 1)) , ((((l_2286 != ((*l_2277) = l_2287)) == 0xA40E5C4FF8C8F4DBLL) == g_158[(g_118 + 3)]) < 0x6AL)) , l_2288))) != 0L) | 0xCAF2L)))) <= 5UL) > 1L);
                        return l_2289;
                    }
                    if (l_2290)
                        break;
                    g_158[g_118] ^= (l_2291[2][4] == l_2293);
                }
            }
            if (p_11)
                break;
            if ((((((safe_lshift_func_uint8_t_u_u(p_10, (((l_2296[3] == ((safe_rshift_func_int64_t_s_s((g_2299 , (safe_mod_func_uint32_t_u_u((safe_sub_func_int64_t_s_s((((*l_2314) &= ((**g_1942) , (g_158[(g_118 + 3)] == (((safe_sub_func_int32_t_s_s((safe_mod_func_int8_t_s_s((p_10 & (l_2308 != l_2309)), ((((*l_2312) &= (safe_rshift_func_int32_t_s_u((255UL && p_10), 18))) & p_10) , p_12))), 0x670EA8E1L)) , l_2313) | (**g_1341))))) && p_10), 0x8D33E78ED21FDF51LL)), 1UL))), p_11)) , l_2296[4])) != p_11) | p_12))) <= p_11) , p_10) , l_2315) == l_2315))
            { /* block id: 1081 */
                int32_t *l_2344 = &g_6[7][0][3];
                int64_t *l_2392 = (void*)0;
                for (g_879.f1 = 0; (g_879.f1 <= 4); g_879.f1 += 1)
                { /* block id: 1084 */
                    int8_t *l_2325 = &l_2290;
                    int16_t **l_2331 = &l_2286;
                    const int32_t *l_2345 = &g_158[g_1216];
                    int32_t l_2350 = 0xE2899D26L;
                    uint32_t *l_2351[10];
                    uint8_t l_2379 = 0x77L;
                    uint32_t l_2399 = 0x42D4FD8FL;
                    int i;
                    for (i = 0; i < 10; i++)
                        l_2351[i] = (void*)0;
                    (*g_700) ^= (safe_add_func_uint8_t_u_u((safe_lshift_func_int16_t_s_u(((*g_1112) = ((((((safe_rshift_func_uint16_t_u_u((((~(safe_add_func_uint64_t_u_u(18446744073709551607UL, 0xEB6B183DC7C683C3LL))) != g_128[(g_118 + 1)]) < g_108[(g_118 + 1)]), g_108[g_118])) , (((*l_2325) = p_12) , l_2326)) == (void*)0) == ((l_2330[0] != (void*)0) == 0UL)) > (*l_2312)) >= 0xED4BL)), (*l_2312))), p_10));
                    if ((((void*)0 != l_2331) && ((~(**g_1114)) >= (((**g_113) |= p_12) | (((g_158[(g_118 + 3)] = ((*l_2312) = ((g_134 = ((!((*l_2314) = ((safe_mod_func_uint8_t_u_u((l_2350 = ((safe_rshift_func_int64_t_s_s(p_10, 52)) ^ (safe_div_func_int32_t_s_s((safe_mul_func_uint16_t_u_u((l_2344 != l_2345), (safe_sub_func_uint32_t_u_u((safe_sub_func_uint32_t_u_u(g_615.f0, (*l_2312))), (*l_2345))))), 0xC6172114L)))), (*l_2312))) , g_674))) >= 0L)) > 1L))) | 0x53D49EA8L) <= p_12)))))
                    { /* block id: 1094 */
                        int64_t l_2364 = 1L;
                        uint64_t l_2380[10] = {0UL,5UL,0x1C1E56C3BA57B682LL,5UL,0UL,0UL,5UL,0x1C1E56C3BA57B682LL,5UL,0UL};
                        int32_t l_2382 = 0x3A1BEE39L;
                        uint32_t l_2391 = 7UL;
                        int32_t *l_2398[6][7][6] = {{{&g_158[2],&l_2350,&g_3,&g_158[(g_118 + 1)],(void*)0,(void*)0},{&g_158[(g_118 + 1)],(void*)0,(void*)0,&g_158[3],&g_1216,&g_158[2]},{&g_158[(g_118 + 3)],&g_3,&g_158[2],&g_6[7][4][5],&l_2382,&g_3},{&l_2350,(void*)0,&l_2382,(void*)0,&g_6[7][0][3],&g_158[g_1216]},{&g_3,&g_3,&l_2258,(void*)0,&g_158[g_1216],&g_1216},{&g_6[7][0][3],&g_1216,&l_2350,(void*)0,&g_158[g_1216],(void*)0},{&g_3,&l_2382,&g_1216,(void*)0,&l_2350,&g_158[(g_118 + 1)]}},{{&l_2350,&g_158[2],&g_6[1][0][1],&g_6[7][4][5],&g_3,&g_158[(g_118 + 3)]},{&g_158[(g_118 + 3)],&g_6[7][0][3],&l_2350,&g_158[3],&g_158[g_1216],&g_158[g_1216]},{&g_158[(g_118 + 1)],&g_158[2],&g_158[2],&g_158[(g_118 + 1)],&g_6[0][3][0],&g_158[2]},{&g_158[2],(void*)0,(void*)0,&g_158[(g_118 + 1)],(void*)0,&g_6[1][0][1]},{(void*)0,&l_2350,&g_158[g_1216],&g_3,(void*)0,&g_158[(g_118 + 3)]},{&g_1216,(void*)0,&g_3,(void*)0,&g_6[0][3][0],&g_1216},{(void*)0,&g_158[2],&g_158[(g_118 + 1)],&g_158[g_1216],&g_158[g_1216],&l_2350}},{{&g_158[g_1216],&g_6[7][0][3],&g_3,&g_1216,&g_3,&g_158[2]},{&g_158[(g_118 + 1)],&g_158[2],&g_1216,&g_158[g_1216],&l_2350,&l_2350},{&g_3,&l_2382,&g_158[(g_118 + 1)],&g_158[2],&g_158[g_1216],&l_2258},{(void*)0,&g_1216,&g_158[(g_118 + 3)],&l_2350,&g_158[g_1216],&l_2258},{&g_158[2],&g_3,&g_158[(g_118 + 1)],&g_1216,&g_6[7][0][3],&l_2350},{&g_6[7][0][3],(void*)0,&g_1216,&g_158[2],&l_2382,&g_158[2]},{&l_2350,&g_3,&g_3,&g_3,&g_1216,&l_2350}},{{&g_158[g_1216],(void*)0,&g_158[(g_118 + 1)],&g_158[(g_118 + 3)],(void*)0,&g_1216},{&g_1216,&l_2350,&g_3,(void*)0,(void*)0,&g_158[(g_118 + 3)]},{(void*)0,&g_158[g_1216],&g_158[g_1216],&l_2382,&l_2258,&g_6[1][0][1]},{(void*)0,&l_2350,&l_2258,&g_158[(g_118 + 1)],&g_6[7][0][3],(void*)0},{&l_2350,&g_158[4],&g_158[2],&l_2350,&g_158[g_1216],&g_6[7][0][3]},{&l_2382,&g_158[2],&l_2350,&g_1216,&l_2350,&g_3},{&g_158[(g_118 + 1)],&l_2382,&g_158[2],&g_3,&g_158[2],&l_2382}},{{&g_3,&g_1216,&g_6[7][0][3],&l_2350,&l_2258,&g_1216},{&g_3,(void*)0,&l_2258,&g_158[g_1216],&l_2350,&l_2350},{&g_1216,(void*)0,&g_158[(g_118 + 3)],(void*)0,&l_2258,&l_2350},{(void*)0,&g_1216,&g_158[(g_118 + 3)],&g_3,&g_158[2],(void*)0},{&g_158[2],&l_2382,(void*)0,&g_6[1][0][1],&l_2350,&g_3},{&l_2258,&g_158[2],&g_158[4],&g_1216,&g_158[g_1216],&g_158[4]},{&g_1216,&g_158[4],&l_2350,&g_1216,&g_6[7][0][3],&l_2350}},{{&g_6[1][0][1],&l_2350,&g_158[6],&g_6[0][3][0],&g_158[(g_118 + 3)],&l_2350},{(void*)0,&g_6[7][0][3],&g_158[6],&g_158[2],&g_158[4],&l_2350},{&g_158[2],&l_2258,&l_2350,&g_3,&l_2258,&g_158[4]},{&g_3,&l_2258,&g_158[4],&g_1216,&l_2350,&g_3},{&l_2350,&l_2350,(void*)0,&g_158[(g_118 + 1)],&g_158[(g_118 + 3)],(void*)0},{&g_158[g_1216],(void*)0,&g_158[(g_118 + 3)],(void*)0,&g_158[2],&l_2350},{&g_6[0][3][0],&g_158[2],&g_158[(g_118 + 3)],&g_1216,&l_2350,&l_2350}}};
                        int i, j, k;
                        l_2382 = ((*l_2312) &= (((safe_add_func_int64_t_s_s((safe_add_func_uint32_t_u_u((((safe_add_func_uint32_t_u_u((safe_div_func_int8_t_s_s((((safe_mul_func_int8_t_s_s((**g_2237), (safe_sub_func_int64_t_s_s(0L, l_2364)))) > (+1L)) != (safe_lshift_func_uint32_t_u_u(g_158[(g_118 + 3)], g_99))), (l_2350 &= ((g_108[(g_879.f1 + 1)] ^= (safe_lshift_func_int8_t_s_u(((((((safe_rshift_func_uint16_t_u_u(((~1L) || (safe_lshift_func_uint64_t_u_u((safe_mul_func_int32_t_s_s(0L, l_2379)), p_11))), l_2380[9])) , l_2286) == (void*)0) , &g_578) == l_2381) && p_10), p_10))) && l_2364)))), p_12)) & 0x4E11651DD7BE084ELL) , (*l_2345)), 0x3C384FE0L)), g_158[(g_118 + 1)])) >= p_10) > 0x647BL));
                        (*g_700) = (((*l_2312) &= (*g_436)) && ((*l_2312) = ((0UL && ((safe_rshift_func_int16_t_s_s((((safe_add_func_int32_t_s_s((safe_add_func_uint16_t_u_u((*l_2345), (safe_lshift_func_uint16_t_u_u((**g_113), 9)))), ((l_2391 , &l_2267) != l_2392))) & (((safe_mul_func_uint32_t_u_u(g_445[4][2].f0, (safe_lshift_func_uint8_t_u_s((p_10 == p_11), (**g_2237))))) < g_108[(g_879.f1 + 1)]) <= g_39)) ^ 1L), 13)) <= p_12)) ^ 0x06L)));
                        if (g_86)
                            goto lbl_2397;
                        --l_2399;
                    }
                    else
                    { /* block id: 1104 */
                        int32_t *l_2402 = (void*)0;
                        int16_t *****l_2404 = &g_1478;
                        (**g_1790) = l_2402;
                        (*l_2312) = ((l_2403[0] = (((*g_1254) = (*l_2345)) ^ p_11)) | (***g_2236));
                        g_1477 = l_2404;
                    }
                }
                (*l_2312) = p_10;
            }
            else
            { /* block id: 1113 */
                int16_t l_2405[4][2][3] = {{{(-1L),(-3L),(-3L)},{1L,0xCD5CL,0xCD5CL}},{{(-1L),(-3L),(-3L)},{1L,0xCD5CL,0xCD5CL}},{{(-1L),(-3L),(-3L)},{1L,0xCD5CL,0xCD5CL}},{{(-1L),(-3L),(-3L)},{1L,0xCD5CL,0xCD5CL}}};
                int i, j, k;
                (*g_700) = l_2405[2][1][0];
                (*g_700) &= (p_10 , p_11);
            }
            if ((*g_436))
                continue;
            for (g_738 = 0; (g_738 <= 4); g_738 += 1)
            { /* block id: 1120 */
                int8_t ***l_2435 = (void*)0;
                int8_t ****l_2434 = &l_2435;
                int32_t l_2440 = 0x1482DDD6L;
                int32_t *l_2448 = &g_2449;
                int32_t *l_2450 = &g_2451;
                const int8_t *l_2461 = &g_2462;
                const int8_t **l_2460 = &l_2461;
                int32_t * const **l_2470[4][3][4] = {{{&l_2468,&l_2468,&l_2468,&l_2468},{&l_2468,&l_2468,&l_2468,&l_2468},{(void*)0,&l_2468,&l_2468,&l_2468}},{{&l_2468,&l_2468,&l_2468,&l_2468},{&l_2468,&l_2468,&l_2468,&l_2468},{&l_2468,(void*)0,&l_2468,(void*)0}},{{(void*)0,&l_2468,&l_2468,(void*)0},{&l_2468,(void*)0,&l_2468,&l_2468},{&l_2468,&l_2468,&l_2468,&l_2468}},{{&l_2468,&l_2468,&l_2468,&l_2468},{&l_2468,&l_2468,&l_2468,&l_2468},{(void*)0,&l_2468,&l_2468,&l_2468}}};
                int32_t **l_2474 = &l_2469;
                int32_t ***l_2473 = &l_2474;
                int i, j, k;
                if (p_10)
                    break;
                (*l_2450) ^= (safe_div_func_uint64_t_u_u(((safe_sub_func_uint32_t_u_u(((*l_2314) = (safe_lshift_func_uint16_t_u_u((safe_add_func_uint64_t_u_u(((!(((safe_add_func_uint8_t_u_u(g_158[(g_118 + 1)], (safe_mod_func_int32_t_s_s((p_12 != (safe_mod_func_uint64_t_u_u((g_2423[6][0][0] & (((safe_lshift_func_uint16_t_u_s(3UL, (safe_mod_func_int32_t_s_s(((*l_2448) ^= (safe_add_func_uint8_t_u_u((safe_add_func_int32_t_s_s((((safe_add_func_int8_t_s_s((((*l_2434) = &g_2237) != &g_2237), ((safe_rshift_func_int8_t_s_s(((safe_div_func_int32_t_s_s(l_2440, (safe_add_func_int64_t_s_s((((l_2447[0][2] = ((safe_mul_func_uint64_t_u_u(l_2440, ((safe_div_func_int8_t_s_s(p_11, (*l_2312))) || p_11))) && p_11)) , &l_2258) != &g_158[(g_118 + 1)]), 18446744073709551615UL)))) > (*g_700)), 4)) > 3L))) || (*l_2312)) != p_12), p_11)), g_158[(g_118 + 3)]))), 0xB850C967L)))) || p_10) <= (*g_1254))), (*g_1254)))), g_158[(g_118 + 1)])))) >= p_12) == 2L)) || 1UL), (*g_1254))), 14))), g_390[0])) && p_12), (*l_2312)));
                if (p_12)
                    continue;
                if ((((((safe_mod_func_uint32_t_u_u((((*g_1342) = (safe_mod_func_uint64_t_u_u((safe_rshift_func_int8_t_s_s(((*l_2448) = ((*l_2312) ^ ((void*)0 == (**g_2236)))), ((safe_sub_func_uint64_t_u_u((((*l_2460) = (*g_2237)) != &p_12), (safe_add_func_int8_t_s_s((l_2465 == (void*)0), (safe_div_func_int32_t_s_s(((g_2471 = l_2468) == ((*l_2473) = &l_2469)), l_2403[2])))))) ^ (*l_2450)))), (*l_2312)))) >= 0x0B43CE509765A480LL), (*l_2312))) ^ (*l_2312)) < (*g_1254)) | (**g_2237)) >= 0L))
                { /* block id: 1133 */
                    const int8_t * const *l_2477 = &l_2461;
                    const int8_t * const **l_2476[9] = {&l_2477,&l_2477,&l_2477,&l_2477,&l_2477,&l_2477,&l_2477,&l_2477,&l_2477};
                    int32_t l_2478 = 0xA026B292L;
                    int i;
                    for (g_363 = 0; (g_363 <= 3); g_363 += 1)
                    { /* block id: 1136 */
                        return p_10;
                    }
                    g_158[(g_118 + 3)] ^= (l_2475 != l_2476[1]);
                    if (l_2478)
                        continue;
                    l_2480[3] = l_2479;
                }
                else
                { /* block id: 1142 */
                    volatile int64_t l_2481 = 0xDDDFE6DE96293D5ALL;/* VOLATILE GLOBAL l_2481 */
                    int32_t l_2493 = 1L;
                    int32_t l_2517 = 0xB1CC6AA5L;
                    (****l_2479) = (****l_2479);
                    for (g_39 = 0; (g_39 <= 4); g_39 += 1)
                    { /* block id: 1146 */
                        l_2481 = (*g_700);
                        (****l_2479) = (void*)0;
                        return g_158[(g_118 + 3)];
                    }
                    (*g_700) = 0x6B6ADD2EL;
                    l_2517 = (((((((safe_div_func_int32_t_s_s((safe_unary_minus_func_uint64_t_u((safe_sub_func_uint64_t_u_u((safe_div_func_uint64_t_u_u(((p_11 , (safe_sub_func_uint8_t_u_u((safe_mul_func_uint32_t_u_u(0UL, (l_2493 |= 1UL))), (p_12 < ((!((safe_mod_func_uint32_t_u_u(((((safe_mul_func_uint32_t_u_u((safe_lshift_func_int32_t_s_s(((safe_sub_func_int16_t_s_s(((safe_div_func_uint8_t_u_u(p_10, ((l_2507 && ((safe_sub_func_uint16_t_u_u((safe_mul_func_uint8_t_u_u(l_2507, ((safe_lshift_func_int16_t_s_u((((6L || (safe_div_func_uint64_t_u_u(8UL, l_2516))) , (*l_2450)) , p_12), l_2481)) ^ (-1L)))), (**g_113))) < 0x181665E0L)) ^ 0x41L))) ^ 0x22EF3669L), 65527UL)) || (*g_436)), 19)), g_158[(g_118 + 3)])) >= (*g_1115)) , p_12) > l_2517), 0x3C07B6ACL)) || p_11)) == p_11))))) == (*l_2312)), 0xD82714927ADF952FLL)), (*g_1342))))), g_158[2])) || (*g_436)) , (**g_2177)) , (***g_2236)) <= p_12) >= l_2447[7][2]) > l_2517);
                }
            }
        }
    }
    return p_12;
}


/* ------------------------------------------ */
/* 
 * reads : g_111 g_85 g_86 g_778 g_108 g_1341 g_1342 g_103 g_1254 g_1156 g_236 g_462 g_1216 g_700 g_2 g_1409 g_113 g_1428 g_110 g_1112 g_54 g_158 g_436 g_1477 g_1001 g_454.f0 g_43 g_1347 g_1410 g_1411 g_390 g_1144 g_6 g_128 g_147 g_1142 g_445.f0 g_156 g_1677 g_1729 g_1748 g_1295 g_1296 g_1790 g_1791 g_737 g_738 g_651 g_1993 g_1114 g_1115 g_1942 g_1943 g_615 g_1783 g_939 g_118 g_2134 g_2145 g_2150 g_363 g_1325.f1 g_2236 g_2237 g_1742 g_479 g_2252
 * writes: g_111 g_86 g_778 g_108 g_158 g_194 g_1325.f1 g_134 g_54 g_1403 g_147 g_390 g_2 g_1409 g_1347 g_39 g_879.f1 g_128 g_110 g_738 g_103 g_1144 g_236 g_1216 g_1677 g_1742 g_118 g_1993 g_2002 g_651 g_2176 g_363 g_2237 g_1341
 */
static int16_t  func_15(uint64_t  p_16, int32_t  p_17, int64_t  p_18, int16_t  p_19)
{ /* block id: 594 */
    int64_t l_1361 = (-3L);
    int64_t **l_1366 = &g_1254;
    int8_t l_1388 = 0xFDL;
    uint16_t *l_1422[1];
    int16_t l_1454 = 0L;
    int32_t l_1469 = (-7L);
    uint32_t l_1486[1];
    int32_t l_1537 = 0x0F761B2DL;
    int32_t l_1551[7][7][5] = {{{0xE134F913L,0L,0L,(-1L),0x4F6BE7BBL},{0L,0x2B8326E1L,0x31BF921AL,7L,0xAB75BA84L},{(-1L),(-1L),0x2B8326E1L,0x94BEC080L,0xF6C06F23L},{0x29C95F87L,0x2A1544B9L,0x8CF9F248L,0L,0x1F680AD8L},{(-1L),4L,0L,(-1L),(-4L)},{0x2A1544B9L,0x07202AA5L,0L,0x1BFA0D5BL,0L},{0x145FFD12L,0L,0L,0xA118D88DL,0x94BEC080L}},{{0xC6BCF1ECL,(-5L),0L,1L,0xC04F0499L},{(-1L),0L,0L,(-1L),0x5654BFDCL},{0L,1L,(-4L),1L,(-1L)},{(-1L),0x66C70F2FL,(-1L),0x4647A47BL,(-1L)},{(-1L),0x29C95F87L,(-1L),1L,(-1L)},{0xE134F913L,(-1L),0x145FFD12L,(-1L),(-1L)},{0x07202AA5L,5L,0xD8BE2F9EL,1L,0xE134F913L}},{{0L,0x2677858AL,0xF6C06F23L,0xA118D88DL,1L},{(-4L),(-1L),0x3752137FL,0x1BFA0D5BL,0xA118D88DL},{0xD3834C60L,0L,0x2A1544B9L,(-1L),5L},{0x3752137FL,(-1L),5L,0L,(-1L)},{(-3L),0xAAF25D13L,2L,0x94BEC080L,(-1L)},{5L,0x91567DA4L,0x76EE15C6L,7L,(-4L)},{0x1BFA0D5BL,0xEF5085A9L,0xC6BCF1ECL,0x6C38E904L,0x0FDA98DFL}},{{0xCB9EAB31L,0xEF5085A9L,(-1L),0L,0L},{5L,0x91567DA4L,(-4L),(-5L),(-4L)},{1L,0xAAF25D13L,(-1L),0x91567DA4L,0x2B8326E1L},{(-1L),(-1L),0xC7A89C21L,(-2L),0L},{(-5L),0L,0L,0xD8BE2F9EL,0x3752137FL},{0x0FDA98DFL,(-1L),1L,0x62B2C4ABL,1L},{0xC7A89C21L,0x2677858AL,0x29C95F87L,0xD3834C60L,(-1L)}},{{4L,5L,0L,5L,4L},{0L,(-1L),1L,(-1L),(-2L)},{0L,0x29C95F87L,0x4A7930B5L,1L,0L},{0xF6C06F23L,0x66C70F2FL,0x94BEC080L,(-1L),(-2L)},{0x0F2853A8L,1L,(-5L),0xE134F913L,4L},{(-2L),0L,(-1L),0x00A98B4BL,(-1L)},{0L,(-5L),0xA118D88DL,0x5CA8B8DCL,1L}},{{2L,0L,(-1L),0x31BF921AL,0x3752137FL},{1L,0x07202AA5L,(-2L),0xF6C06F23L,0L},{0x91567DA4L,4L,0xD3834C60L,0L,0x2B8326E1L},{0x85C05651L,0x2A1544B9L,7L,0x1BA5DBDEL,(-4L)},{0L,0L,(-5L),(-1L),(-5L)},{(-4L),0x5419914CL,0xC7A89C21L,(-1L),0xA48DB2BBL},{0x2B8326E1L,(-1L),0xC7A89C21L,5L,1L}},{{0xD8BE2F9EL,0x0FDA98DFL,(-5L),0x4A7930B5L,1L},{5L,(-1L),1L,0xDABDF793L,(-1L)},{(-7L),(-1L),0x1E4665C0L,(-1L),(-4L)},{0x145FFD12L,0L,0x94BEC080L,1L,0L},{0x91567DA4L,0x145FFD12L,0L,0L,0xA118D88DL},{(-3L),(-1L),0L,0x1BFA0D5BL,0L},{(-3L),0x4A7930B5L,0x6C38E904L,0x6C38E904L,0x4A7930B5L}}};
    uint64_t ***l_1563 = &g_1341;
    int32_t ***l_1581 = (void*)0;
    uint16_t ***l_1601 = &g_113;
    uint64_t l_1733 = 0xF2ACF948D29A7493LL;
    int8_t *l_1743 = (void*)0;
    uint8_t **l_1761 = &g_737[0];
    uint8_t *** const l_1760[9] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
    int32_t l_1826 = 1L;
    int32_t l_1829 = (-6L);
    int32_t l_1858 = 0xF8AB0EE2L;
    int32_t l_1866 = 9L;
    int32_t l_1867 = 0xD8BF60BCL;
    int32_t l_1869 = 0x7F0207BCL;
    int32_t l_1870 = 0xB27A0705L;
    int32_t l_1872 = 1L;
    int32_t l_1900[5][10];
    int8_t **l_2046 = &g_1742[1];
    int64_t l_2055 = 0x6FF9E1C37B424624LL;
    uint64_t l_2058 = 0x6CE42E97DE4B8AB9LL;
    uint32_t *l_2117 = (void*)0;
    uint32_t **l_2116 = &l_2117;
    int32_t *l_2139 = &g_6[5][3][0];
    union U0 *l_2181[8][4] = {{(void*)0,&g_1001,&g_905[3][5][4],&g_445[2][0]},{&g_1001,&g_1001,&g_1001,&g_1001},{&g_1001,&g_1001,(void*)0,&g_905[5][1][2]},{&g_1001,(void*)0,&g_1001,&g_905[3][5][4]},{&g_1001,&g_905[5][1][2],&g_905[3][5][4],&g_905[3][5][4]},{(void*)0,(void*)0,&g_445[2][0],&g_905[5][1][2]},{&g_905[5][1][2],&g_1001,&g_445[2][0],&g_1001},{(void*)0,&g_1001,&g_905[3][5][4],&g_445[2][0]}};
    uint16_t **l_2202 = &l_1422[0];
    int i, j, k;
    for (i = 0; i < 1; i++)
        l_1422[i] = &g_54;
    for (i = 0; i < 1; i++)
        l_1486[i] = 0xF1396937L;
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 10; j++)
            l_1900[i][j] = 0x4082446BL;
    }
    for (g_111 = 0; (g_111 != (-2)); g_111 = safe_sub_func_uint8_t_u_u(g_111, 2))
    { /* block id: 597 */
        uint16_t l_1360 = 1UL;
        int16_t **l_1373 = &g_1112;
        volatile union U0 *l_1389 = &g_228[1];
        const uint32_t *l_1402 = &g_939;
        const uint32_t **l_1401 = &l_1402;
        int16_t ****l_1432 = (void*)0;
        int32_t l_1436[3];
        uint32_t l_1470 = 1UL;
        uint64_t ***l_1531 = &g_1341;
        uint16_t ***l_1600 = (void*)0;
        int32_t l_1621[4] = {0x3316C72EL,0x3316C72EL,0x3316C72EL,0x3316C72EL};
        uint8_t l_1622 = 0xF4L;
        int32_t l_1639 = 0xA9E5FB6DL;
        int32_t l_1640 = 7L;
        int32_t *l_1730 = &g_158[0];
        int i;
        for (i = 0; i < 3; i++)
            l_1436[i] = 0L;
        if ((safe_add_func_int16_t_s_s(l_1360, ((*g_85) ^= l_1361))))
        { /* block id: 599 */
            int64_t l_1385 = 4L;
            int32_t *l_1408[10] = {(void*)0,(void*)0,&g_158[2],&g_6[1][2][4],&g_158[2],(void*)0,(void*)0,&g_158[2],&g_6[1][2][4],&g_158[2]};
            const volatile int64_t *** volatile *l_1412 = &g_1409[8][1];
            uint16_t *l_1423 = (void*)0;
            int16_t ***l_1434 = &g_1111[0];
            int16_t ****l_1433 = &l_1434;
            union U0 **l_1450 = (void*)0;
            int64_t l_1453[10] = {(-1L),(-1L),6L,0L,6L,(-1L),(-1L),6L,0L,6L};
            int i;
            for (g_778 = 3; (g_778 >= 0); g_778 -= 1)
            { /* block id: 602 */
                int32_t l_1381 = (-1L);
                uint16_t l_1386 = 0x66EDL;
                int32_t *l_1387[6][5][8] = {{{(void*)0,&g_3,&g_3,&g_6[7][0][3],(void*)0,&g_1216,&g_6[4][4][5],&g_6[6][3][3]},{&g_6[7][0][3],&g_3,&g_3,&g_6[4][0][5],&g_1216,&g_3,&g_6[0][3][3],&g_1216},{&g_1216,&g_6[6][3][3],&g_6[4][1][0],&g_6[3][4][5],&g_1216,&g_1216,&g_6[7][0][3],&g_6[4][1][3]},{&g_6[7][0][3],&g_6[2][2][4],&g_3,&g_1216,&g_3,&g_6[6][4][2],(void*)0,&g_6[3][4][5]},{&g_6[3][4][1],&g_6[7][0][3],&g_6[6][4][2],&g_6[3][0][4],&g_6[7][0][3],(void*)0,(void*)0,&g_1216}},{{&g_3,&g_6[7][0][3],&g_6[4][1][0],&g_6[4][1][4],&g_6[3][0][4],(void*)0,&g_6[7][0][3],&g_6[7][0][3]},{&g_3,&g_1216,&g_6[1][0][4],&g_6[1][0][4],&g_1216,&g_3,&g_6[4][4][5],&g_6[7][0][3]},{&g_6[7][0][3],(void*)0,(void*)0,&g_6[7][0][3],&g_6[7][0][3],&g_6[7][0][3],&g_6[6][3][3],&g_6[7][0][3]},{&g_6[4][0][5],&g_6[3][4][5],(void*)0,&g_6[7][0][3],&g_3,&g_6[7][2][0],&g_6[4][1][3],&g_6[7][0][3]},{&g_3,&g_3,&g_3,&g_1216,(void*)0,&g_6[3][4][1],&g_3,(void*)0}},{{(void*)0,&g_3,&g_1216,(void*)0,&g_6[7][0][3],&g_1216,(void*)0,&g_6[7][0][3]},{&g_3,(void*)0,&g_1216,(void*)0,&g_1216,&g_1216,&g_1216,&g_3},{&g_3,&g_6[7][0][3],&g_6[7][0][3],&g_3,&g_3,&g_3,&g_6[4][1][0],&g_3},{&g_6[6][4][2],&g_6[7][3][2],&g_1216,&g_3,&g_6[7][0][3],&g_3,&g_6[7][0][3],&g_6[7][0][3]},{&g_3,&g_1216,&g_6[6][0][1],&g_6[7][1][2],&g_6[7][0][3],&g_6[6][0][1],(void*)0,&g_6[7][0][3]}},{{&g_6[7][0][3],&g_6[1][0][4],(void*)0,(void*)0,&g_3,&g_1216,&g_6[7][2][0],&g_1216},{(void*)0,&g_3,&g_3,&g_6[7][0][3],(void*)0,&g_3,(void*)0,&g_6[7][0][3]},{&g_1216,(void*)0,&g_3,(void*)0,&g_3,&g_6[6][0][1],(void*)0,&g_3},{&g_6[7][0][3],(void*)0,&g_6[7][3][2],&g_6[7][0][3],&g_6[7][0][3],&g_6[7][0][3],&g_6[7][3][2],(void*)0},{&g_6[7][1][2],&g_6[7][3][2],&g_1216,&g_6[1][0][4],&g_6[0][1][0],&g_6[0][0][0],(void*)0,&g_3}},{{(void*)0,&g_1216,&g_3,&g_3,&g_6[7][1][2],&g_1216,(void*)0,&g_6[7][0][3]},{&g_1216,&g_3,&g_1216,&g_6[0][0][0],&g_6[6][4][2],&g_3,&g_6[7][3][2],(void*)0},{&g_6[6][4][2],&g_3,&g_6[7][3][2],(void*)0,&g_6[3][4][1],&g_6[7][0][3],(void*)0,&g_1216},{&g_6[7][0][3],&g_3,&g_3,&g_6[7][1][2],&g_3,&g_6[6][3][3],(void*)0,&g_6[7][0][3]},{&g_1216,(void*)0,&g_3,&g_1216,&g_3,&g_3,&g_6[7][2][0],(void*)0}},{{&g_6[7][0][3],(void*)0,(void*)0,(void*)0,&g_3,&g_6[4][1][0],(void*)0,&g_1216},{&g_6[7][0][3],(void*)0,&g_6[6][0][1],&g_6[7][0][3],&g_1216,&g_6[7][0][3],&g_6[7][0][3],&g_1216},{&g_1216,&g_1216,&g_1216,&g_6[0][0][0],&g_6[7][0][3],&g_6[7][0][3],&g_6[4][1][0],(void*)0},{&g_1216,&g_6[7][0][3],&g_6[7][0][3],&g_6[7][0][3],&g_6[7][0][3],(void*)0,&g_1216,&g_3},{(void*)0,(void*)0,&g_1216,(void*)0,&g_1216,&g_3,(void*)0,&g_3}}};
                int i, j, k;
                l_1388 |= ((*g_236) = ((safe_rshift_func_int32_t_s_u((((((3UL ^ ((safe_sub_func_uint64_t_u_u((l_1366 != &g_1254), (g_108[(g_778 + 1)] = (safe_add_func_int8_t_s_s(((safe_lshift_func_int16_t_s_u(g_108[(g_778 + 2)], ((((safe_mod_func_uint64_t_u_u((l_1373 == (((p_19 != (safe_sub_func_uint64_t_u_u((+((safe_add_func_int16_t_s_s((safe_mul_func_int16_t_s_s((l_1381 = 0x1DAAL), (((safe_sub_func_int64_t_s_s((!(g_86 < ((l_1385 , l_1386) , p_19))), 0UL)) ^ p_18) ^ 4294967295UL))), l_1361)) > 0x6039279AL)), (**g_1341)))) | 18446744073709551615UL) , l_1373)), (*g_1254))) != p_17) ^ p_18) ^ g_1156))) , (-1L)), 0L))))) > l_1386)) >= 0L) , (*g_1254)) >= 0xC027BDE494904573LL) ^ 1L), 8)) & 0x203134C3C36C3934LL));
                for (g_86 = 0; (g_86 <= 1); g_86 += 1)
                { /* block id: 609 */
                    for (g_194 = 0; (g_194 <= 3); g_194 += 1)
                    { /* block id: 612 */
                        int i, j;
                        l_1389 = &g_454[g_86];
                        return g_462[(g_778 + 1)][(g_86 + 1)];
                    }
                }
                if (g_103)
                    goto lbl_1944;
            }
            for (g_1325.f1 = 0; (g_1325.f1 >= 24); g_1325.f1++)
            { /* block id: 620 */
                int8_t l_1405[1][7][1];
                uint8_t **l_1407 = &g_737[4];
                int i, j, k;
                for (i = 0; i < 1; i++)
                {
                    for (j = 0; j < 7; j++)
                    {
                        for (k = 0; k < 1; k++)
                            l_1405[i][j][k] = 0xD4L;
                    }
                }
                for (g_134 = 23; (g_134 >= 60); g_134++)
                { /* block id: 623 */
                    for (g_54 = 0; (g_54 <= 3); g_54 += 1)
                    { /* block id: 626 */
                        uint32_t l_1400 = 18446744073709551613UL;
                        uint32_t *l_1406 = &g_147;
                        int i;
                        (*g_700) |= ((*g_236) = ((safe_div_func_uint16_t_u_u((((((((safe_lshift_func_int8_t_s_s(((g_390[0] = (((*g_85) = l_1385) != (((*l_1406) = (1L | ((((safe_div_func_int64_t_s_s((*g_1254), l_1400)) & (&g_504[1] != (g_1403[0] = l_1401))) == ((((l_1405[0][3][0] = ((8L > l_1385) , 0x26L)) < 0x98L) , (void*)0) == &p_18)) , l_1405[0][3][0]))) || l_1400))) == g_1216), 3)) , l_1407) != (void*)0) , 0xAA37DACAL) || p_17) >= 255UL) , p_18), 1UL)) != l_1360));
                    }
                }
                l_1408[6] = &g_1216;
            }
            (*l_1412) = g_1409[8][0];
            if ((l_1388 & ((((((safe_mul_func_uint32_t_u_u((((p_18 = (l_1360 , l_1361)) == (safe_add_func_uint32_t_u_u((safe_mul_func_int16_t_s_s(l_1388, (safe_mul_func_uint8_t_u_u(l_1388, 1UL)))), (+(((*g_113) != (l_1423 = l_1422[0])) != (((safe_sub_func_uint32_t_u_u((safe_mul_func_uint8_t_u_u(0UL, p_17)), l_1360)) | p_16) , l_1388)))))) < 0xC9L), l_1360)) | 0UL) , p_17) || l_1360) && l_1360) , g_1428)))
            { /* block id: 641 */
                int32_t **l_1429 = &l_1408[6];
                uint32_t *l_1457 = (void*)0;
                (*l_1429) = l_1408[6];
                if ((g_110 ^ (g_108[0] , ((l_1361 , p_18) > (safe_sub_func_int16_t_s_s((l_1432 != l_1433), ((l_1366 == l_1366) , (l_1436[2] = ((**l_1373) = (~p_17))))))))))
                { /* block id: 645 */
                    return p_17;
                }
                else
                { /* block id: 647 */
                    uint8_t *l_1455 = (void*)0;
                    uint8_t *l_1456 = &g_1347;
                    const uint32_t *l_1458 = (void*)0;
                    (*g_236) &= (((*l_1456) = (safe_unary_minus_func_int8_t_s((0x5860B5ACA1DD9A67LL > (p_18 = (safe_mod_func_uint8_t_u_u(((*g_700) == ((safe_lshift_func_int16_t_s_u((safe_div_func_int64_t_s_s((safe_rshift_func_int64_t_s_u(((*g_1254) |= ((safe_lshift_func_uint64_t_u_s(((safe_add_func_uint32_t_u_u(0UL, ((void*)0 != l_1450))) , ((++(*l_1423)) >= (l_1422[0] != (l_1360 , l_1422[0])))), 35)) , (p_17 & p_18))), l_1453[3])), l_1454)), p_18)) ^ (**g_1341))), l_1436[0]))))))) && p_16);
                    (*g_700) |= 0x6BF22DF4L;
                    (*g_236) |= (l_1457 != l_1458);
                    if (p_16)
                        break;
                }
            }
            else
            { /* block id: 657 */
                int8_t l_1463 = 0xCDL;
                int32_t l_1467 = 0x54AC3657L;
                int16_t *****l_1480[7] = {&l_1432,&l_1432,&l_1432,&l_1432,&l_1432,&l_1432,&l_1432};
                int i;
                if (((safe_add_func_uint8_t_u_u(l_1463, l_1436[0])) & (safe_div_func_int16_t_s_s(0L, l_1454))))
                { /* block id: 658 */
                    int32_t **l_1466 = &l_1408[6];
                    int32_t l_1468[3][5] = {{0x5BEC2B6CL,1L,0x56F8407DL,1L,0x5BEC2B6CL},{0x5BEC2B6CL,1L,0x56F8407DL,1L,0x5BEC2B6CL},{0x5BEC2B6CL,1L,0x56F8407DL,1L,0x5BEC2B6CL}};
                    int i, j;
                    (*l_1466) = &p_17;
                    --l_1470;
                    if ((*g_436))
                        break;
                    (*l_1466) = &p_17;
                }
                else
                { /* block id: 663 */
                    int64_t l_1491 = (-1L);
                    int32_t l_1492 = 9L;
                    int32_t l_1493 = 0x693EFDF7L;
                    uint32_t *l_1511 = &g_39;
                    if ((l_1436[2] != (safe_sub_func_int32_t_s_s((safe_lshift_func_int64_t_s_u(((*l_1401) != (void*)0), 21)), (((p_19 ^ (((((l_1480[5] = g_1477) != (void*)0) | (((l_1467 = p_18) , (p_19 || ((*g_700) && 0xBF516EFEL))) | 0x04DAFBB3729D5821LL)) != p_16) < 0x500CL)) || 0x6439L) <= (*g_85))))))
                    { /* block id: 666 */
                        p_17 ^= (*g_436);
                        p_17 = (((l_1470 , (safe_mod_func_int8_t_s_s((p_18 & (~((((safe_mul_func_int32_t_s_s(0xC1A4C04BL, 0xB47E04CDL)) || p_19) == l_1486[0]) != 0x43L))), (safe_sub_func_int64_t_s_s(p_16, (safe_rshift_func_int64_t_s_u(p_19, p_18))))))) || 0L) <= 0x1603EE0FL);
                        (*g_236) = 0x2221A750L;
                        if ((*g_700))
                            break;
                    }
                    else
                    { /* block id: 671 */
                        uint8_t l_1494 = 251UL;
                        l_1494--;
                        if (p_17)
                            break;
                    }
                    (*g_700) ^= (*g_236);
                    (*g_236) ^= ((l_1493 = ((((p_19 & p_19) < (l_1467 = (l_1492 = (1L != (p_18 != ((0UL & ((safe_mul_func_int32_t_s_s((~((*g_1112) |= p_19)), ((g_1001 , (((+0xAA729C253072CAF1LL) , (((safe_lshift_func_uint64_t_u_u(((safe_unary_minus_func_uint32_t_u(((*l_1511) = ((safe_add_func_uint8_t_u_u((safe_mod_func_int8_t_s_s((!l_1463), g_454[1].f0)), g_43)) , l_1388)))) , 0xEDCC0AAD175D3087LL), (**g_1341))) <= (-1L)) && p_17)) , 5UL)) <= p_17))) <= 4L)) > (-10L))))))) > 0x77L) | 0x41L)) > l_1463);
                    (*g_236) ^= l_1467;
                }
            }
        }
        else
        { /* block id: 685 */
            uint8_t l_1518[3];
            int32_t l_1553 = 0x562483B4L;
            int16_t **** const l_1569 = &g_1479;
            int16_t l_1574[5];
            int32_t **l_1583 = &g_236;
            int32_t ***l_1582[6][7][6] = {{{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,(void*)0,&l_1583,&l_1583},{(void*)0,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{(void*)0,&l_1583,(void*)0,&l_1583,&l_1583,&l_1583}},{{&l_1583,&l_1583,&l_1583,(void*)0,&l_1583,(void*)0},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{(void*)0,(void*)0,(void*)0,&l_1583,&l_1583,(void*)0},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{(void*)0,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,(void*)0,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583}},{{(void*)0,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{(void*)0,(void*)0,(void*)0,(void*)0,&l_1583,(void*)0},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,(void*)0},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,(void*)0,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583}},{{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,(void*)0,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583}},{{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,(void*)0},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,(void*)0,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,(void*)0,&l_1583,(void*)0,&l_1583,(void*)0}},{{&l_1583,&l_1583,&l_1583,&l_1583,(void*)0,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,&l_1583,&l_1583},{&l_1583,&l_1583,&l_1583,&l_1583,(void*)0,(void*)0}}};
            uint64_t l_1584 = 9UL;
            int8_t l_1604 = (-4L);
            uint64_t ****l_1673 = &l_1563;
            uint16_t ** const **l_1721[6];
            uint32_t l_1727 = 0xB014C3B7L;
            int64_t * const *** const l_1728 = (void*)0;
            int i, j, k;
            for (i = 0; i < 3; i++)
                l_1518[i] = 3UL;
            for (i = 0; i < 5; i++)
                l_1574[i] = 0xF061L;
            for (i = 0; i < 6; i++)
                l_1721[i] = (void*)0;
            if (((*g_236) ^= p_17))
            { /* block id: 687 */
                for (g_879.f1 = 0; (g_879.f1 == 7); g_879.f1 = safe_add_func_int64_t_s_s(g_879.f1, 2))
                { /* block id: 690 */
                    uint32_t l_1514[6] = {8UL,8UL,0x8B139F55L,8UL,8UL,0x8B139F55L};
                    int32_t *l_1517[5] = {&l_1436[2],&l_1436[2],&l_1436[2],&l_1436[2],&l_1436[2]};
                    int32_t *l_1521 = &g_128[6];
                    int i;
                    l_1514[2]++;
                    ++l_1518[1];
                    if (p_17)
                        continue;
                    (*g_236) ^= (((*l_1521) = p_16) , ((!((g_1347 , &g_134) != (void*)0)) , (*g_700)));
                }
                for (g_110 = 0; (g_110 >= 39); g_110 = safe_add_func_uint32_t_u_u(g_110, 4))
                { /* block id: 699 */
                    for (g_86 = 1; (g_86 <= 6); g_86 += 1)
                    { /* block id: 702 */
                        uint32_t *l_1536[1][5] = {{&l_1486[0],&l_1486[0],&l_1486[0],&l_1486[0],&l_1486[0]}};
                        uint8_t *l_1552 = &g_1347;
                        int i, j;
                        (*g_236) &= (-1L);
                        (*g_236) = (0xDC6F9481ED9EAB9FLL | (((*g_1410) == (void*)0) , (safe_mul_func_int32_t_s_s(((((((*l_1552) ^= (safe_rshift_func_uint8_t_u_u((safe_sub_func_int64_t_s_s(((&g_1341 == l_1531) < ((safe_lshift_func_int16_t_s_u(0L, g_158[g_86])) , (safe_mod_func_int32_t_s_s((((--g_390[4]) > (safe_rshift_func_uint32_t_u_s(((((safe_lshift_func_int64_t_s_s((safe_mul_func_uint32_t_u_u((safe_div_func_uint32_t_u_u(((+((safe_mul_func_uint32_t_u_u(0xD40DD16CL, (p_17 , l_1436[2]))) | l_1551[3][5][1])) || 0xFFBFFAF7B2A3E224LL), 1UL)), (*g_436))), p_17)) != l_1551[4][2][1]) | (*g_1254)) , p_16), 30))) && p_17), 0x813FDE14L)))), 0xB1C8CF7C2289EAFBLL)), p_19))) == 0UL) , (*g_85)) >= (*g_85)) , 0x4D3F5AAFL), 0x8B917E75L))));
                    }
                }
                return p_17;
            }
            else
            { /* block id: 710 */
                uint8_t l_1554 = 0UL;
                uint64_t ***l_1566 = &g_1341;
                uint64_t l_1585 = 0x88994BD369755291LL;
                int32_t l_1586 = (-1L);
                int32_t **l_1597 = &g_236;
                int8_t *l_1605 = &l_1604;
                for (l_1388 = 0; (l_1388 >= 0); l_1388 -= 1)
                { /* block id: 713 */
                    l_1553 = p_16;
                    for (g_1325.f1 = 0; (g_1325.f1 <= 0); g_1325.f1 += 1)
                    { /* block id: 717 */
                        return l_1554;
                    }
                    (*g_236) |= (*g_700);
                }
                if ((safe_add_func_uint64_t_u_u(l_1537, (l_1553 && (safe_add_func_int16_t_s_s((safe_mul_func_int16_t_s_s(l_1554, 1L)), 0x646EL))))))
                { /* block id: 722 */
                    uint64_t ****l_1564 = &l_1531;
                    uint64_t ****l_1565[5][10][4] = {{{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,&l_1563,(void*)0,&l_1563},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,&l_1563},{(void*)0,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0}},{{(void*)0,&l_1563,(void*)0,&l_1563},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,&l_1563},{(void*)0,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,&l_1563,(void*)0,&l_1563},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,&l_1563}},{{(void*)0,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,&l_1563,(void*)0,&l_1563},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,&l_1563},{(void*)0,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0}},{{&l_1563,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_1563,(void*)0},{(void*)0,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0}},{{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_1563,(void*)0},{(void*)0,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,&l_1563,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_1563,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_1563,(void*)0},{(void*)0,&l_1563,(void*)0,(void*)0}}};
                    int i, j, k;
                    for (g_738 = (-1); (g_738 > 19); g_738++)
                    { /* block id: 725 */
                        (*g_700) = (&g_578 == &g_578);
                    }
                    l_1566 = ((*l_1564) = l_1563);
                    if (l_1436[2])
                        break;
                }
                else
                { /* block id: 731 */
                    (**l_1583) = (((((**l_1366) = (((**g_113)--) ^ (((void*)0 == l_1569) , (safe_div_func_uint16_t_u_u(65535UL, (safe_sub_func_int32_t_s_s(((g_778 | 0xCCL) <= (((l_1574[4] |= p_18) >= (safe_div_func_uint32_t_u_u((safe_div_func_int64_t_s_s(((((((safe_rshift_func_int16_t_s_u(p_17, 14)) , l_1581) == l_1582[4][5][2]) , (void*)0) == (void*)0) >= l_1584), p_18)), p_16))) == p_16)), l_1554))))))) < l_1585) <= l_1586) && 0x24L);
                    if (p_16)
                        continue;
                }
                p_17 &= (safe_lshift_func_int16_t_s_u((((*l_1605) = ((safe_rshift_func_uint64_t_u_u(((safe_sub_func_uint32_t_u_u(8UL, (g_158[3] , (*g_700)))) ^ (((safe_mod_func_uint64_t_u_u((safe_sub_func_uint32_t_u_u((((*g_1410) == (((l_1597 == ((safe_mul_func_uint64_t_u_u((((((l_1601 = l_1600) != &g_113) | ((p_16 = ((((safe_mul_func_uint64_t_u_u((g_1144 |= ((**g_1341) = p_16)), g_6[6][1][2])) >= 9L) == 1UL) , l_1551[3][5][1])) > 0xC30E0DBA1191A43DLL)) , 0x97A2B2C8545B21FBLL) , 3UL), (*g_1254))) , (void*)0)) < (**l_1597)) , (*g_1410))) | 4294967287UL), g_128[1])), p_19)) , &g_236) != l_1597)), 28)) | l_1604)) == 0xE3L), 5));
            }
            (*l_1583) = &l_1469;
            for (p_18 = 0; (p_18 != 16); ++p_18)
            { /* block id: 748 */
                int32_t l_1638 = 0x3C4F0B99L;
                int32_t l_1645[10] = {0x9F89B114L,0x9F89B114L,6L,1L,6L,0x9F89B114L,0x9F89B114L,6L,1L,6L};
                uint16_t **l_1652 = &l_1422[0];
                uint32_t l_1702 = 0xDDD26AC7L;
                uint16_t ****l_1722 = &l_1601;
                int i;
                if ((((((*g_85) = (!((safe_div_func_int64_t_s_s(0xC56AE6C7880D7A38LL, (safe_lshift_func_uint8_t_u_u((l_1640 ^= (safe_mod_func_uint32_t_u_u(((((safe_add_func_uint16_t_u_u(2UL, ((safe_add_func_int8_t_s_s(l_1436[1], (safe_sub_func_int32_t_s_s(((l_1621[2] = (p_17 |= ((*g_436) = ((*g_236) = (*g_700))))) || l_1622), (safe_mul_func_uint32_t_u_u((safe_add_func_uint8_t_u_u(((safe_lshift_func_uint64_t_u_s((safe_div_func_uint32_t_u_u(4294967286UL, (l_1639 |= (p_18 | ((safe_div_func_uint64_t_u_u((safe_sub_func_uint32_t_u_u((((safe_mul_func_uint16_t_u_u(((((!g_147) & 0xAD2B206FL) | p_19) && 0x5C71BCA8L), p_16)) > l_1638) , 0xD305D505L), 7L)), 0xC35FB1CC9F94C1D1LL)) >= p_19))))), 39)) & p_16), 0xDFL)), (-1L))))))) , (**l_1583)))) & 0L) & (*g_1342)) != (*g_85)), 0xBFB0340CL))), p_19)))) >= p_16))) & p_18) && 6UL) <= 1L))
                { /* block id: 756 */
                    int32_t l_1643 = (-8L);
                    uint32_t l_1646[6];
                    uint16_t ** const l_1651 = &l_1422[0];
                    uint64_t ****l_1674 = (void*)0;
                    uint8_t *l_1693 = &l_1518[1];
                    const uint16_t *l_1700 = &l_1360;
                    const uint16_t **l_1699 = &l_1700;
                    const uint16_t ***l_1698 = &l_1699;
                    const uint16_t ****l_1697[5] = {&l_1698,&l_1698,&l_1698,&l_1698,&l_1698};
                    const uint16_t *****l_1696 = &l_1697[3];
                    int32_t *l_1701[8];
                    int64_t l_1714 = 0xA810D378275CCF08LL;
                    int8_t *l_1715 = &l_1388;
                    int i;
                    for (i = 0; i < 6; i++)
                        l_1646[i] = 0xA143C0DBL;
                    for (i = 0; i < 8; i++)
                        l_1701[i] = &l_1638;
                    for (g_1216 = 0; (g_1216 > 14); g_1216++)
                    { /* block id: 759 */
                        int8_t l_1644[4] = {(-1L),(-1L),(-1L),(-1L)};
                        int8_t *l_1675 = &l_1644[3];
                        int32_t l_1676 = 0x4F9E64D0L;
                        int i;
                        ++l_1646[3];
                        (**l_1583) = (safe_add_func_int8_t_s_s(g_1142[0][1], (((l_1651 != l_1652) , ((safe_sub_func_uint32_t_u_u(((safe_rshift_func_int32_t_s_s((safe_mod_func_uint16_t_u_u(0x805DL, (safe_add_func_uint8_t_u_u((safe_add_func_uint8_t_u_u((safe_sub_func_uint8_t_u_u((**l_1583), (safe_mul_func_uint16_t_u_u((((*g_1254) = p_16) , (p_19 < ((**l_1366) = ((((safe_rshift_func_int16_t_s_u((safe_mul_func_int64_t_s_s((0x1E385DA80C2F1F1DLL | ((((safe_sub_func_int8_t_s_s(((*l_1675) = ((((l_1674 = l_1673) != &l_1563) & 0x929F8695L) == 0xE1B6L)), p_17)) >= p_16) && 0x0E76CDDAL) && p_16)), p_17)), l_1638)) != p_17) ^ l_1646[2]) != l_1646[3])))), 65529UL)))), 0x2DL)), g_390[3])))), (*g_236))) , g_445[4][2].f0), 0xA7AA3B1DL)) , g_156)) , 0xA7L)));
                        if (l_1470)
                            break;
                        ++g_1677;
                    }
                    (**l_1583) &= (safe_sub_func_int16_t_s_s((safe_sub_func_int64_t_s_s((-10L), (*g_1342))), (((l_1470 != (&g_1342 == ((safe_mul_func_int32_t_s_s(((l_1645[2] = (safe_add_func_uint32_t_u_u(4294967295UL, (safe_sub_func_int32_t_s_s(((!((p_17 <= (p_16 ^ (safe_rshift_func_uint8_t_u_s((++(*l_1693)), ((((((&g_578 == l_1696) <= 0xB4L) , (**g_1341)) || l_1638) > 0UL) && p_17))))) >= l_1640)) | 0xBE3AL), g_1142[0][0]))))) , 0x3534EABFL), 4294967295UL)) , &g_1342))) , l_1702) > l_1639)));
                    if ((~((((*l_1715) &= (safe_div_func_uint64_t_u_u((safe_rshift_func_uint16_t_u_u(((**l_1652) = (safe_add_func_int64_t_s_s(l_1638, (*g_1342)))), ((g_110 > ((*g_436) ^= (safe_mul_func_uint16_t_u_u(1UL, ((safe_mul_func_uint8_t_u_u(p_19, ((((((p_18 | (l_1714 , ((void*)0 != &g_1341))) , p_19) , (void*)0) != (void*)0) != l_1436[2]) ^ 1L))) < (**l_1583)))))) ^ p_17))), (**l_1583)))) <= 0x11L) & l_1621[1])))
                    { /* block id: 775 */
                        uint32_t l_1716 = 0UL;
                        l_1716++;
                        (**l_1583) &= ((safe_mul_func_uint32_t_u_u((l_1721[3] != l_1722), (safe_sub_func_uint8_t_u_u(((safe_rshift_func_uint64_t_u_u((*g_1342), 51)) >= ((l_1727 , (void*)0) != l_1728)), 0x25L)))) != (g_1729 , (p_17 == p_16)));
                        if ((*g_436))
                            break;
                    }
                    else
                    { /* block id: 779 */
                        l_1730 = &p_17;
                        return p_19;
                    }
                }
                else
                { /* block id: 783 */
                    int8_t *l_1740 = &l_1388;
                    int8_t **l_1741[2][5] = {{&l_1740,&l_1740,&l_1740,&l_1740,&l_1740},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}};
                    uint32_t *l_1749 = &l_1470;
                    const int32_t l_1752[1] = {0x9A66C34EL};
                    uint32_t *l_1753 = &g_390[0];
                    int i, j;
                    for (l_1727 = 0; (l_1727 <= 40); l_1727 = safe_add_func_int16_t_s_s(l_1727, 7))
                    { /* block id: 786 */
                        l_1733--;
                        (*g_236) = (*l_1730);
                    }
                    (*g_700) = (g_86 <= (safe_mod_func_uint32_t_u_u(((*l_1753) = (safe_lshift_func_int64_t_s_u(((((*l_1740) &= g_1156) <= (((l_1743 = (g_1742[1] = &g_479)) != (void*)0) == (((7L >= (((safe_sub_func_int8_t_s_s(g_390[0], (g_118 = ((safe_mul_func_int16_t_s_s(g_1748, ((((*l_1749) = p_16) && ((*g_236) &= ((((safe_div_func_uint32_t_u_u(((((((*g_1295) != l_1432) < p_18) ^ l_1752[0]) ^ 4294967293UL) , 0UL), 0x5119CCAAL)) == 0x31L) , (*l_1730)) == p_19))) & 0x04BBL))) <= l_1752[0])))) || (*g_236)) >= l_1702)) && (*l_1730)) > 0xEDF0948AL))) >= p_19), (**g_1341)))), (*l_1730))));
                }
            }
        }
        (*l_1730) = (*l_1730);
    }
lbl_1944:
    for (g_111 = 0; (g_111 < (-7)); --g_111)
    { /* block id: 805 */
        int32_t l_1764 = 0L;
        uint32_t *l_1773 = &g_134;
        int32_t *** const *l_1788 = &l_1581;
        int32_t l_1820[1];
        int64_t *l_1909 = &g_363;
        uint16_t **l_1934 = &l_1422[0];
        int16_t l_1935[7];
        uint8_t *l_1936[5][6] = {{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347,&g_1347},{&g_1347,&g_1347,&g_1347,&g_1347,&g_1347,&g_1347}};
        int i, j;
        for (i = 0; i < 1; i++)
            l_1820[i] = 5L;
        for (i = 0; i < 7; i++)
            l_1935[i] = 0x76F3L;
    }
    if (((***g_1790) = 0xB996A014L))
    { /* block id: 891 */
        (**g_1790) = &p_17;
    }
    else
    { /* block id: 893 */
        const uint32_t l_1953 = 0x079429E5L;
        uint8_t * const l_2003 = &g_1347;
        int32_t *l_2021 = (void*)0;
        uint32_t l_2037 = 0x5D07D859L;
        int32_t l_2075[8][6][5] = {{{(-6L),(-6L),1L,(-9L),0L},{4L,0xDD921CCDL,0xDD921CCDL,4L,(-6L)},{4L,(-9L),0L,0L,(-9L)},{(-6L),0xDD921CCDL,0L,1L,1L},{0xDD921CCDL,(-6L),0xDD921CCDL,0L,1L},{(-9L),4L,1L,4L,(-9L)}},{{0xDD921CCDL,4L,(-6L),(-9L),(-6L)},{(-6L),(-6L),1L,(-9L),0L},{4L,0xDD921CCDL,0xDD921CCDL,4L,(-6L)},{4L,(-9L),0L,1L,0L},{0L,(-9L),1L,(-6L),(-6L)},{(-9L),0L,(-9L),1L,(-6L)}},{{0L,0xDD921CCDL,(-6L),0xDD921CCDL,0L},{(-9L),0xDD921CCDL,0L,0L,0L},{0L,0L,(-6L),0L,4L},{0xDD921CCDL,(-9L),(-9L),0xDD921CCDL,0L},{0xDD921CCDL,0L,1L,1L,0L},{0L,(-9L),1L,(-6L),(-6L)}},{{(-9L),0L,(-9L),1L,(-6L)},{0L,0xDD921CCDL,(-6L),0xDD921CCDL,0L},{(-9L),0xDD921CCDL,0L,0L,0L},{0L,0L,(-6L),0L,4L},{0xDD921CCDL,(-9L),(-9L),0xDD921CCDL,0L},{0xDD921CCDL,0L,1L,1L,0L}},{{0L,(-9L),1L,(-6L),(-6L)},{(-9L),0L,(-9L),1L,(-6L)},{0L,0xDD921CCDL,(-6L),0xDD921CCDL,0L},{(-9L),0xDD921CCDL,0L,0L,0L},{0L,0L,(-6L),0L,4L},{0xDD921CCDL,(-9L),(-9L),0xDD921CCDL,0L}},{{0xDD921CCDL,0L,1L,1L,0L},{0L,(-9L),1L,(-6L),(-6L)},{(-9L),0L,(-9L),1L,(-6L)},{0L,0xDD921CCDL,(-6L),0xDD921CCDL,0L},{(-9L),0xDD921CCDL,0L,0L,0L},{0L,0L,(-6L),0L,4L}},{{0xDD921CCDL,(-9L),(-9L),0xDD921CCDL,0L},{0xDD921CCDL,0L,1L,1L,0L},{0L,(-9L),1L,(-6L),(-6L)},{(-9L),0L,(-9L),1L,(-6L)},{0L,0xDD921CCDL,(-6L),0xDD921CCDL,0L},{(-9L),0xDD921CCDL,0L,0L,0L}},{{0L,0L,(-6L),0L,4L},{0xDD921CCDL,(-9L),(-9L),0xDD921CCDL,0L},{0xDD921CCDL,0L,1L,1L,0L},{0L,(-9L),1L,(-6L),(-6L)},{(-9L),0L,(-9L),1L,(-6L)},{0L,0xDD921CCDL,(-6L),0xDD921CCDL,1L}}};
        int32_t l_2143 = (-1L);
        int32_t *l_2184 = (void*)0;
        int i, j, k;
        for (l_1733 = 0; (l_1733 != 23); ++l_1733)
        { /* block id: 896 */
            const uint32_t l_1961 = 0x5F289110L;
            int32_t l_1977 = (-8L);
            uint16_t ***l_2000 = &g_113;
            const int8_t *l_2063 = (void*)0;
            const int32_t *l_2094 = &g_651[2][6][3];
            for (p_16 = 0; (p_16 < 26); p_16 = safe_add_func_uint32_t_u_u(p_16, 7))
            { /* block id: 899 */
                int32_t l_1999 = 6L;
                uint16_t l_2039[8][2] = {{0xC182L,0xC182L},{0xC182L,0xC182L},{0xC182L,0xC182L},{0xC182L,0xC182L},{0xC182L,0xC182L},{0xC182L,0xC182L},{0xC182L,0xC182L},{0xC182L,0xC182L}};
                uint16_t **l_2076 = &g_85;
                uint8_t l_2088 = 0x2FL;
                uint32_t **l_2118 = (void*)0;
                int i, j;
                for (l_1872 = 0; (l_1872 >= 16); l_1872 = safe_add_func_uint32_t_u_u(l_1872, 6))
                { /* block id: 902 */
                    uint32_t l_1976 = 0xCED6EF22L;
                    int32_t l_1992 = 0x383CEF4BL;
                    int32_t l_2057 = (-10L);
                    uint16_t l_2071 = 0xE067L;
                    int32_t *l_2095 = &g_128[6];
                    if ((safe_mul_func_uint8_t_u_u(l_1953, (safe_rshift_func_uint32_t_u_u((safe_mod_func_int8_t_s_s(((~l_1961) ^ ((*g_1254) = ((void*)0 != &p_18))), ((l_1977 = ((safe_add_func_int8_t_s_s(((safe_mod_func_uint8_t_u_u(((**l_1761)--), p_17)) || (safe_div_func_uint8_t_u_u((l_1953 > (safe_div_func_uint32_t_u_u(((safe_div_func_uint16_t_u_u((safe_rshift_func_int64_t_s_u((l_1953 ^ (-1L)), ((*g_1342) = (((void*)0 == &l_1551[4][1][3]) >= (*g_700))))), 1UL)) ^ g_651[0][8][0]), 0x1F3ABBDAL))), p_16))), l_1976)) == p_17)) ^ 0xBA73L))), p_18)))))
                    { /* block id: 907 */
                        int8_t *l_1996 = (void*)0;
                        int8_t *l_1997 = &g_118;
                        int8_t *l_1998[5][6][3] = {{{&g_479,&g_479,&g_479},{&g_479,&g_479,(void*)0},{(void*)0,&g_479,&g_479},{&g_479,(void*)0,&l_1388},{&l_1388,&g_479,&g_479},{&g_479,&g_479,(void*)0}},{{&l_1388,&g_479,&g_479},{&g_479,&l_1388,(void*)0},{(void*)0,(void*)0,&g_479},{&g_479,&l_1388,&l_1388},{&g_479,&g_479,&g_479},{&g_479,&g_479,(void*)0}},{{(void*)0,&g_479,&g_479},{&g_479,(void*)0,&l_1388},{&l_1388,&g_479,&g_479},{&g_479,&g_479,(void*)0},{&l_1388,&g_479,&g_479},{&g_479,&l_1388,(void*)0}},{{(void*)0,(void*)0,&g_479},{&g_479,&l_1388,&l_1388},{&g_479,&g_479,&g_479},{&g_479,&g_479,(void*)0},{(void*)0,&g_479,&g_479},{&g_479,(void*)0,&l_1388}},{{&l_1388,&g_479,&g_479},{&g_479,&g_479,(void*)0},{&l_1388,&g_479,&g_479},{&g_479,&l_1388,(void*)0},{(void*)0,(void*)0,&g_479},{&g_479,&l_1388,&l_1388}}};
                        int i, j, k;
                        (*g_700) &= (safe_add_func_uint16_t_u_u((((((safe_mod_func_uint8_t_u_u(p_16, 255UL)) | p_18) == (safe_mul_func_int8_t_s_s((l_1999 &= ((*l_1997) = (safe_lshift_func_int8_t_s_u((((*g_85)++) > (safe_add_func_uint64_t_u_u(((g_1993++) || 0x2559L), p_19))), 3)))), ((**l_1761) |= ((void*)0 == l_2000))))) <= ((*g_1254) = 9L)) != ((+((***g_1790) = (((g_2002[3][1] = (void*)0) != l_2003) || p_18))) > l_1992)), 5L));
                    }
                    else
                    { /* block id: 917 */
                        int8_t l_2014 = 0xB5L;
                        int32_t **l_2022 = &l_2021;
                        uint32_t *l_2038 = (void*)0;
                        (*g_236) |= ((**g_1114) && (safe_div_func_int16_t_s_s(((l_1977 = (((l_1976 | (safe_mod_func_uint16_t_u_u((p_18 < (safe_div_func_int64_t_s_s(0xA12364AEBAFE44CFLL, (safe_sub_func_int8_t_s_s((((**g_1942) , (**g_1114)) > (((safe_add_func_int32_t_s_s((l_2014 ^ (safe_mod_func_int32_t_s_s(((g_147 == g_128[5]) > p_18), l_1953))), 0x2692ADFEL)) >= p_17) && 0xD086172D6BEEC7FCLL)), l_1961))))), (*g_1112)))) ^ (**g_113)) >= 0x478EF35A761A866ALL)) && p_19), 1L)));
                        l_1999 = (safe_mul_func_uint8_t_u_u(((safe_div_func_uint32_t_u_u((g_390[0] = (&g_111 != ((*l_2022) = l_2021))), l_2014)) ^ ((void*)0 == &g_1943)), ((l_1992 = (safe_rshift_func_uint64_t_u_u((*g_1342), 10))) | (safe_rshift_func_uint64_t_u_u((g_1677 = (g_1144 = (safe_sub_func_uint64_t_u_u(p_19, (safe_rshift_func_int32_t_s_s((((safe_sub_func_uint64_t_u_u((((l_1977 = (safe_rshift_func_uint16_t_u_u((p_19 == (((((safe_sub_func_int64_t_s_s((((**g_1791) = (((((4294967295UL ^ 0x06B55AC0L) == p_19) , 1L) , (*g_1115)) || (**g_1114))) <= g_1142[0][0]), l_2037)) | p_16) , l_2038) == (void*)0) , p_18)), 14))) ^ p_16) , (*g_1342)), (**g_1341))) & g_1144) < 4294967295UL), 16)))))), 9)))));
                        if (l_2039[5][0])
                            continue;
                        if ((**g_1783))
                            break;
                    }
                    for (g_194 = (-10); (g_194 != 30); g_194 = safe_add_func_int8_t_s_s(g_194, 8))
                    { /* block id: 933 */
                        uint16_t l_2042 = 1UL;
                        int32_t *l_2043 = &g_651[0][8][0];
                        int8_t **l_2044 = (void*)0;
                        int8_t ***l_2045 = (void*)0;
                        int32_t l_2056 = (-1L);
                        uint16_t **l_2077 = &l_1422[0];
                        (*g_700) = ((((***g_1790) = l_2042) ^ ((l_1977 > ((((*l_2043) = (l_1992 |= p_18)) , &g_1742[1]) != (l_2046 = l_2044))) , ((safe_rshift_func_uint64_t_u_s(((((l_2057 &= (safe_rshift_func_uint16_t_u_u(((p_17 = (l_2042 || (l_2056 = ((((((*g_1254) = ((((l_2042 , (safe_add_func_int8_t_s_s(((safe_lshift_func_uint32_t_u_s(l_2055, (((l_2042 >= 0x53L) && 0xDDL) , l_2042))) < p_19), l_1992))) , 0x74L) <= l_2042) != (-2L))) ^ 0x0FAA3470430D1D2DLL) & 0x95B3L) < 0UL) & 3UL)))) , 0xB880L), p_18))) > l_2058) != g_939) , (**g_1341)), 52)) , g_445[4][2].f0))) | 0xD2CCL);
                        (*g_700) = (p_19 || ((*g_1342)++));
                        if ((*g_436))
                            break;
                        (*g_700) ^= ((((safe_mod_func_uint8_t_u_u(((&g_479 == l_2063) != ((0L != ((((safe_lshift_func_uint16_t_u_s(p_19, 3)) && (***g_1790)) ^ 65535UL) , ((safe_add_func_uint16_t_u_u((~((l_1992 = (((safe_mod_func_int16_t_s_s(l_2071, (safe_mul_func_uint32_t_u_u(l_1999, (((l_2056 = ((g_147 = ((((safe_unary_minus_func_uint64_t_u((l_2075[1][2][1] = (*g_1342)))) , l_2076) != l_2077) , l_2039[7][0])) > (-2L))) <= l_2042) & 0x599E86DD5C7C2AE5LL))))) , l_2039[3][0]) & 0xE050L)) | l_1977)), p_16)) || l_1953))) >= 0xA610L)), 1L)) , (void*)0) != (void*)0) > p_17);
                    }
                    for (g_1347 = (-14); (g_1347 == 50); g_1347 = safe_add_func_int32_t_s_s(g_1347, 7))
                    { /* block id: 954 */
                        int32_t *l_2080 = &l_1469;
                        int32_t *l_2081 = (void*)0;
                        int32_t *l_2082 = &g_158[2];
                        int32_t *l_2083 = (void*)0;
                        int32_t *l_2084 = &l_1866;
                        int32_t *l_2085 = &g_158[2];
                        int32_t *l_2086[1][3];
                        int64_t *l_2093 = &l_2055;
                        int32_t l_2125 = (-8L);
                        int i, j;
                        for (i = 0; i < 1; i++)
                        {
                            for (j = 0; j < 3; j++)
                                l_2086[i][j] = (void*)0;
                        }
                        ++l_2088;
                        if (l_2039[5][0])
                            continue;
                        (*l_2082) = ((0x02F8L ^ (*g_85)) & ((((*l_2093) ^= (*g_1254)) < ((l_2094 == l_2095) <= 18446744073709551611UL)) && (++(**g_1341))));
                        p_17 = ((*l_2085) = (l_2057 &= ((safe_rshift_func_int64_t_s_s((safe_lshift_func_uint16_t_u_s(l_1961, (safe_div_func_int16_t_s_s((safe_div_func_int64_t_s_s(3L, (((p_19 , func_62(l_1977, ((safe_rshift_func_uint16_t_u_s((safe_mod_func_int32_t_s_s((safe_sub_func_uint8_t_u_u((safe_lshift_func_uint64_t_u_s((((((l_1999 = 0x92L) , ((safe_mul_func_uint16_t_u_u((l_2116 == l_2118), ((safe_lshift_func_int16_t_s_u(p_16, (l_1999 ^= (safe_rshift_func_uint16_t_u_u((safe_rshift_func_uint32_t_u_s((l_2125 = p_17), (**g_1783))), (**g_113)))))) , l_2039[1][1]))) ^ l_1961)) , p_19) && 0L) || p_18), (*g_1254))), l_1977)), 0x2C7C6E9DL)), 0)) != l_2088))) , l_1961) & p_16))), p_17)))), 57)) || p_19)));
                    }
                }
            }
        }
        if ((safe_lshift_func_int64_t_s_s((((**l_1761) = p_16) || 7UL), ((*g_1254) ^= p_17))))
        { /* block id: 972 */
            return l_2037;
        }
        else
        { /* block id: 974 */
            int8_t l_2149 = 0xF2L;
            union U0 *l_2165[8][7] = {{&g_445[5][2],&g_445[4][2],&g_2134,&g_2134,&g_445[4][2],&g_445[5][2],&g_445[4][2]},{&g_1325,&g_445[4][2],&g_445[4][2],&g_1325,&g_905[3][5][4],&g_1325,&g_445[4][2]},{(void*)0,(void*)0,&g_445[5][2],&g_2134,&g_445[5][2],(void*)0,(void*)0},{&g_1001,&g_445[4][2],&g_905[1][0][2],&g_445[4][2],&g_1001,&g_1001,&g_445[4][2]},{(void*)0,&g_445[4][2],(void*)0,&g_445[5][2],&g_445[5][2],(void*)0,&g_445[4][2]},{&g_445[4][2],&g_905[3][5][4],&g_905[1][0][2],&g_905[1][0][2],&g_905[3][5][4],&g_445[4][2],&g_905[3][5][4]},{(void*)0,&g_445[5][2],&g_445[5][2],(void*)0,&g_445[4][2],(void*)0,&g_445[5][2]},{&g_1001,&g_1001,&g_445[4][2],&g_905[1][0][2],&g_445[4][2],&g_1001,&g_1001}};
            union U0 **l_2164 = &l_2165[3][5];
            uint32_t *l_2174 = (void*)0;
            uint32_t *l_2175[5][5] = {{&g_110,&g_674,&g_194,&g_674,&g_110},{&g_110,&g_674,&g_194,&g_674,&g_110},{&g_110,&g_674,&g_194,&g_674,&g_110},{&g_110,&g_674,&g_194,&g_674,&g_110},{&g_110,&g_674,&g_194,&g_674,&g_110}};
            uint32_t ** const l_2173[6] = {(void*)0,&l_2175[2][4],&l_2174,&l_2175[2][4],&l_2174,&l_2174};
            uint32_t ** const *l_2172 = &l_2173[1];
            int32_t *l_2183[2];
            uint8_t l_2232[8][5][6] = {{{0x34L,0x96L,0x52L,1UL,0x41L,0xBBL},{0UL,0x0FL,255UL,0xBBL,0xC5L,255UL},{255UL,0xD5L,0x47L,0x53L,0x88L,0xD5L},{0x7EL,0x21L,4UL,0xD5L,255UL,0x0FL},{0UL,0xA2L,2UL,6UL,0xBBL,0x21L}},{{246UL,1UL,0x18L,2UL,1UL,0UL},{0x1AL,0xEDL,255UL,3UL,0x21L,255UL},{0xEAL,248UL,0x8FL,0xC5L,0x96L,255UL},{0UL,0UL,0xA2L,0x52L,0UL,0xD7L},{255UL,0x20L,0UL,1UL,0UL,0UL}},{{0UL,6UL,6UL,0UL,7UL,3UL},{0xD5L,3UL,255UL,0xEAL,0x7EL,0x2EL},{1UL,0x47L,248UL,0x34L,0x7EL,6UL},{255UL,3UL,247UL,0x88L,7UL,4UL},{0x52L,6UL,255UL,0x18L,0UL,0x82L}},{{0x0FL,0x20L,253UL,7UL,0UL,255UL},{2UL,0UL,0xEAL,0x81L,0x96L,1UL},{7UL,248UL,0x2EL,255UL,0x21L,253UL},{3UL,0xEDL,0UL,0x20L,1UL,0x18L},{0x53L,1UL,6UL,2UL,0xBBL,255UL}},{{6UL,0xA2L,0UL,0xD7L,255UL,0x1AL},{255UL,0x21L,0xEDL,0x20L,0x88L,5UL},{0xC5L,0xD5L,0x52L,0xD5L,0xC5L,0x88L},{255UL,0x0FL,1UL,0x47L,0x41L,0xD6L},{0xBBL,0x96L,0xD5L,0x0FL,255UL,0xD6L}},{{0x82L,0x18L,1UL,248UL,0xD7L,0x88L},{255UL,255UL,0x52L,6UL,0x34L,5UL},{0UL,2UL,0xEDL,0UL,5UL,0x1AL},{0x18L,0x41L,0UL,0UL,0x52L,255UL},{255UL,0UL,6UL,1UL,255UL,0x18L}},{{0xD6L,1UL,0UL,255UL,1UL,253UL},{255UL,255UL,246UL,0xD6L,0UL,1UL},{253UL,1UL,0x20L,0UL,0x8FL,0x20L},{0xD5L,246UL,1UL,255UL,0xD6L,3UL},{0x73L,0x41L,255UL,255UL,0x41L,0x73L}},{{0xD5L,0x20L,0xD6L,0x34L,0x82L,0UL},{0xC5L,0x20L,0UL,0UL,0UL,246UL},{0xC5L,1UL,0UL,0x34L,253UL,1UL},{0xD5L,0x82L,0x88L,255UL,0xD7L,0x0FL},{0x73L,0UL,0x8FL,255UL,0x88L,0x1AL}}};
            uint16_t *l_2245[3];
            int i, j, k;
            for (i = 0; i < 2; i++)
                l_2183[i] = &l_1870;
            for (i = 0; i < 3; i++)
                l_2245[i] = &g_86;
lbl_2182:
            for (l_1867 = 0; (l_1867 <= (-25)); l_1867 = safe_sub_func_uint64_t_u_u(l_1867, 2))
            { /* block id: 977 */
                union U0 ***l_2136 = (void*)0;
                union U0 ****l_2135 = &l_2136;
                uint32_t *l_2144 = &l_1486[0];
                int16_t * const *l_2147 = &g_1112;
                int16_t * const **l_2146 = &l_2147;
                uint32_t * const *l_2167 = &l_2117;
                uint32_t * const **l_2166 = &l_2167;
                uint32_t ** const *l_2169 = &l_2116;
                if (((1L < (+(safe_lshift_func_uint64_t_u_u(l_2075[1][2][1], (p_16 , ((~(((*l_2144) = (((g_2134 , &g_1942) != ((*l_2135) = &g_513)) ^ (safe_mod_func_uint16_t_u_u((((**g_1790) = l_2139) == (void*)0), (l_2143 = (safe_rshift_func_int16_t_s_u(((*g_1112) |= ((((**l_1366) = ((safe_unary_minus_func_int32_t_s(p_19)) == 4UL)) < (*g_1342)) <= (**g_1341))), 5))))))) > 3UL)) && 1L)))))) || (*l_2139)))
                { /* block id: 984 */
                    int32_t *l_2148 = &l_1537;
                    uint32_t * const ***l_2168 = &l_2166;
                    uint32_t ** const **l_2170 = (void*)0;
                    uint32_t ** const **l_2171[10] = {&l_2169,(void*)0,(void*)0,&l_2169,(void*)0,(void*)0,&l_2169,(void*)0,(void*)0,&l_2169};
                    int32_t *l_2180 = &l_2143;
                    int i;
                    (*g_700) |= g_2145;
                    if ((((void*)0 != l_2146) ^ ((*l_2148) = (&g_1403[1] != &g_1403[0]))))
                    { /* block id: 987 */
                        l_2149 = 1L;
                    }
                    else
                    { /* block id: 989 */
                        (*g_1791) = (*g_1791);
                        if (g_2150[0][0][0])
                            break;
                        if (p_18)
                            goto lbl_2182;
                        (*l_2148) ^= 0x1BE428DEL;
                    }
                    (*l_2180) &= (safe_sub_func_uint32_t_u_u(((safe_unary_minus_func_int64_t_s((!(*g_85)))) < (safe_div_func_uint64_t_u_u((safe_sub_func_int16_t_s_s((-2L), ((safe_div_func_uint16_t_u_u((!(((((((**g_1341) || (l_2164 != &g_1943)) >= ((((*l_2168) = l_2166) != (g_2176 = (l_2172 = l_2169))) || 0UL)) && ((!p_17) > (*l_2148))) < l_2075[0][5][1]) != g_363) , 2UL)), p_18)) != 0x5FL))), 4L))), (*g_700)));
                    (*l_2164) = l_2181[3][3];
                }
                else
                { /* block id: 999 */
                    return (*l_2139);
                }
            }
            (*g_700) |= ((**g_113) <= ((**g_1790) != (l_2184 = (l_2183[0] = l_2174))));
            for (l_1858 = 0; (l_1858 >= 7); l_1858++)
            { /* block id: 1009 */
                int8_t l_2192 = 0x57L;
                union U0 *l_2201 = &g_1729;
                uint16_t **l_2203 = (void*)0;
                int32_t l_2242[9] = {(-1L),0xE45A9172L,(-1L),(-1L),0xE45A9172L,(-1L),(-1L),0xE45A9172L,(-1L)};
                int32_t l_2247[2];
                int32_t l_2251[9][10][1] = {{{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L}},{{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L}},{{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL}},{{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L}},{{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL}},{{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L}},{{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L}},{{0x593B88A6L},{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L}},{{0x593B88A6L},{0x4D4A52D8L},{0xA0230A26L},{0x1F8B108AL},{0x4D4A52D8L},{0x1F8B108AL},{0xA0230A26L},{0x4D4A52D8L},{0x593B88A6L},{0x593B88A6L}}};
                int i, j, k;
                for (i = 0; i < 2; i++)
                    l_2247[i] = 1L;
                (*g_700) &= (+(safe_add_func_int8_t_s_s(((safe_lshift_func_uint8_t_u_u(l_2192, 0)) ^ ((safe_lshift_func_uint64_t_u_u(((safe_mod_func_uint64_t_u_u(((**g_1341) |= ((p_16 , ((0xF4L > ((-8L) == ((**g_1114) | (safe_rshift_func_int64_t_s_u(l_2192, 19))))) != (l_2201 == (void*)0))) == (l_2202 != l_2203))), p_19)) >= p_18), 18)) | p_18)), p_18)));
                for (g_363 = 0; (g_363 == 12); g_363 = safe_add_func_int16_t_s_s(g_363, 9))
                { /* block id: 1014 */
                    int32_t l_2233 = 1L;
                    int8_t *l_2246[2][3][6] = {{{&g_118,&l_2149,&g_479,&g_479,&g_479,&l_2149},{(void*)0,&g_479,(void*)0,&l_1388,&l_2192,&l_2192},{&l_1388,&l_2192,&l_2192,&g_479,(void*)0,(void*)0}},{{&l_2192,&l_2192,&l_2192,&l_2192,&l_2192,&l_2192},{&l_2192,&g_479,&l_2149,&l_2192,&g_118,&l_2192},{&l_2149,(void*)0,(void*)0,&g_479,(void*)0,&l_2192}}};
                    int32_t l_2250 = 0L;
                    int i, j, k;
                    for (p_18 = 29; (p_18 == 10); p_18 = safe_sub_func_uint16_t_u_u(p_18, 2))
                    { /* block id: 1017 */
                        (*g_700) = (safe_rshift_func_uint64_t_u_s(p_19, 30));
                    }
                    (*g_436) ^= (l_2233 = (safe_add_func_int64_t_s_s((*g_1254), ((safe_mul_func_uint8_t_u_u((l_2192 && (safe_rshift_func_int8_t_s_s(((safe_mod_func_int32_t_s_s(((((safe_lshift_func_int32_t_s_u(((safe_add_func_uint8_t_u_u((p_19 , p_18), p_17)) || (safe_rshift_func_int64_t_s_u(p_17, 36))), ((safe_mul_func_uint64_t_u_u((((safe_div_func_uint32_t_u_u((*l_2139), p_16)) >= ((**l_2202) = (safe_div_func_int32_t_s_s((((safe_rshift_func_int64_t_s_u(6L, (**g_1341))) == (*l_2139)) >= p_19), p_18)))) ^ l_2192), l_2192)) , p_16))) >= 1L) < 0xB6B9DD952EAA29C1LL) || 0UL), 0x82ABBF9AL)) ^ (*g_1342)), p_18))), l_2232[4][1][1])) < p_16))));
                    for (g_1325.f1 = 2; (g_1325.f1 > 36); ++g_1325.f1)
                    { /* block id: 1025 */
                        (*g_2236) = &g_1742[1];
                    }
                    l_2251[8][7][0] = ((***g_2236) < ((safe_mod_func_int8_t_s_s((safe_mul_func_int16_t_s_s(p_19, (l_2242[1] = ((*g_1112) = (((*l_1563) = (*l_1563)) != (void*)0))))), (l_2250 ^= (safe_rshift_func_uint16_t_u_u(((((l_2247[0] = ((void*)0 == l_2245[2])) , (***g_1790)) < (safe_lshift_func_int64_t_s_s((*g_1254), l_2233))) , l_2247[0]), p_19))))) < g_118));
                }
            }
            (*g_436) = (p_17 = p_19);
        }
        return l_2075[7][3][2];
    }
    return g_2252;
}


/* ------------------------------------------ */
/* 
 * reads : g_1341 g_1342 g_103
 * writes:
 */
static uint64_t  func_20(int8_t  p_21, uint16_t  p_22, int32_t  p_23, uint64_t  p_24, const uint32_t  p_25)
{ /* block id: 592 */
    return (**g_1341);
}


/* ------------------------------------------ */
/* 
 * reads : g_158
 * writes:
 */
static int16_t  func_26(int8_t  p_27)
{ /* block id: 7 */
    uint32_t *l_38[9] = {&g_39,&g_39,&g_39,&g_39,&g_39,&g_39,&g_39,&g_39,&g_39};
    uint8_t l_40[8] = {246UL,246UL,246UL,246UL,246UL,246UL,246UL,246UL};
    int32_t l_41 = 0x07293CC9L;
    int16_t *l_42[4] = {&g_43,&g_43,&g_43,&g_43};
    int32_t l_44[1][10] = {{1L,0x48967C74L,1L,1L,0x48967C74L,1L,1L,0x48967C74L,1L,1L}};
    int32_t l_1141 = 0L;
    int32_t *l_1143 = (void*)0;
    int32_t *l_1145 = &g_158[4];
    int32_t *l_1146 = &l_44[0][6];
    int32_t *l_1147 = &l_41;
    int32_t *l_1148 = &l_41;
    int32_t *l_1149 = &l_44[0][6];
    int32_t *l_1150 = &g_158[2];
    int32_t *l_1151 = (void*)0;
    int32_t *l_1152 = (void*)0;
    int32_t *l_1153 = &l_44[0][6];
    int32_t *l_1154 = (void*)0;
    int32_t *l_1155[1];
    uint64_t l_1157 = 18446744073709551615UL;
    int16_t l_1220 = (-1L);
    int8_t l_1240[8];
    uint64_t *l_1337 = &l_1157;
    uint64_t **l_1336 = &l_1337;
    uint64_t ***l_1338 = (void*)0;
    uint64_t **l_1340 = &l_1337;
    uint64_t ***l_1339[2];
    const uint16_t **l_1346[1];
    const uint16_t ***l_1345 = &l_1346[0];
    const uint16_t ****l_1344 = &l_1345;
    const uint16_t *****l_1343 = &l_1344;
    int i, j;
    for (i = 0; i < 1; i++)
        l_1155[i] = &g_158[2];
    for (i = 0; i < 8; i++)
        l_1240[i] = 0x5AL;
    for (i = 0; i < 2; i++)
        l_1339[i] = &l_1340;
    for (i = 0; i < 1; i++)
        l_1346[i] = (void*)0;
    return (*l_1150);
}


/* ------------------------------------------ */
/* 
 * reads : g_54 g_3 g_6 g_85 g_86 g_99 g_43 g_2 g_111 g_39 g_128 g_110 g_103 g_147 g_118 g_156 g_158 g_198 g_194 g_134 g_228 g_108 g_700 g_436 g_1001 g_802 g_266.f0 g_615.f0 g_738 g_651 g_421 g_500.f0 g_1111 g_1114 g_236 g_615 g_505
 * writes: g_54 g_43 g_99 g_103 g_86 g_108 g_110 g_111 g_113 g_128 g_134 g_147 g_158 g_194 g_118 g_236 g_2 g_778 g_390 g_39 g_738 g_1111 g_1114 g_436
 */
static uint16_t  func_30(uint64_t  p_31, int16_t  p_32, uint8_t  p_33)
{ /* block id: 11 */
    int32_t l_45[10] = {(-1L),(-1L),0x98BA832AL,(-1L),(-1L),0x98BA832AL,(-1L),(-1L),0x98BA832AL,(-1L)};
    int16_t *l_55 = &g_43;
    int32_t l_119 = 0x35086CD1L;
    uint8_t l_990 = 255UL;
    int32_t l_1017 = 0x261FD7BFL;
    union U0 ***l_1039[5][9][5] = {{{&g_513,&g_513,&g_513,&g_513,(void*)0},{&g_513,&g_513,(void*)0,(void*)0,&g_513},{&g_513,(void*)0,&g_513,&g_513,&g_513},{(void*)0,&g_513,&g_513,&g_513,(void*)0},{&g_513,&g_513,&g_513,&g_513,(void*)0},{&g_513,&g_513,&g_513,&g_513,(void*)0},{&g_513,&g_513,(void*)0,(void*)0,(void*)0},{&g_513,&g_513,&g_513,(void*)0,&g_513},{&g_513,&g_513,&g_513,&g_513,(void*)0}},{{&g_513,&g_513,&g_513,(void*)0,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,(void*)0},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,(void*)0,(void*)0,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513}},{{(void*)0,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{(void*)0,(void*)0,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,(void*)0,(void*)0},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,(void*)0,&g_513},{(void*)0,(void*)0,(void*)0,(void*)0,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513}},{{&g_513,&g_513,&g_513,&g_513,&g_513},{(void*)0,&g_513,&g_513,&g_513,&g_513},{(void*)0,&g_513,(void*)0,(void*)0,&g_513},{&g_513,&g_513,(void*)0,&g_513,&g_513},{&g_513,&g_513,&g_513,(void*)0,&g_513},{&g_513,&g_513,&g_513,(void*)0,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,(void*)0,&g_513}},{{&g_513,&g_513,&g_513,&g_513,(void*)0},{&g_513,&g_513,(void*)0,&g_513,&g_513},{(void*)0,&g_513,(void*)0,&g_513,&g_513},{&g_513,(void*)0,&g_513,&g_513,&g_513},{&g_513,&g_513,&g_513,&g_513,&g_513},{(void*)0,(void*)0,&g_513,&g_513,&g_513},{(void*)0,&g_513,&g_513,&g_513,&g_513},{&g_513,&g_513,(void*)0,&g_513,&g_513},{(void*)0,&g_513,(void*)0,(void*)0,&g_513}}};
    uint32_t l_1041 = 0x49ADE30EL;
    uint8_t l_1099 = 0UL;
    int32_t **l_1127 = &g_236;
    int32_t **l_1128 = (void*)0;
    int32_t **l_1129 = &g_236;
    int32_t **l_1130 = &g_236;
    int32_t **l_1131 = (void*)0;
    int32_t **l_1132 = &g_236;
    int32_t **l_1133 = &g_236;
    int32_t **l_1134 = &g_236;
    int32_t **l_1135 = &g_236;
    int32_t **l_1136 = &g_236;
    int32_t *l_1137 = &l_119;
    uint64_t *l_1139 = &g_99;
    uint8_t **l_1140[3][10][8] = {{{&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0},{&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4]},{(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4]},{&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0},{&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4]},{(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4]},{&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0},{&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4]},{(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4]},{&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0}},{{&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4]},{(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4]},{&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0},{&g_737[4],&g_737[4],&g_737[4],&g_737[4],(void*)0,&g_737[4],(void*)0,(void*)0},{&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0},{(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4]},{(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0},{&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0},{(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4]},{(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0}},{{&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0},{(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4]},{(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0},{&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0},{(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4]},{(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0},{&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0},{(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4]},{(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0,&g_737[4],(void*)0,(void*)0},{&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0,&g_737[4],&g_737[4],(void*)0}}};
    int i, j, k;
    if (l_45[9])
    { /* block id: 12 */
        uint8_t l_52[8] = {255UL,255UL,255UL,255UL,255UL,255UL,255UL,255UL};
        uint16_t *l_53 = &g_54;
        int8_t *l_115 = (void*)0;
        int8_t *l_116 = (void*)0;
        int8_t *l_117[7][5][4] = {{{(void*)0,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{(void*)0,&g_118,&g_118,&g_118}},{{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{(void*)0,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118}},{{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,(void*)0,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118}},{{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{(void*)0,(void*)0,&g_118,&g_118},{&g_118,(void*)0,&g_118,&g_118},{&g_118,(void*)0,&g_118,&g_118}},{{&g_118,(void*)0,&g_118,&g_118},{(void*)0,(void*)0,&g_118,&g_118},{&g_118,(void*)0,(void*)0,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118}},{{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,(void*)0,&g_118},{&g_118,(void*)0,&g_118,&g_118},{&g_118,&g_118,(void*)0,&g_118}},{{&g_118,&g_118,&g_118,&g_118},{&g_118,(void*)0,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,&g_118,&g_118,&g_118},{&g_118,(void*)0,(void*)0,&g_118}}};
        uint32_t *l_120 = (void*)0;
        int32_t l_971 = 1L;
        uint32_t l_996 = 0x5B5D551EL;
        uint8_t l_1010[8][10][1] = {{{0x79L},{255UL},{0x0AL},{255UL},{0x79L},{253UL},{253UL},{248UL},{254UL},{0x56L}},{{0UL},{0UL},{0UL},{0UL},{0x56L},{254UL},{248UL},{253UL},{253UL},{0x79L}},{{255UL},{0x0AL},{255UL},{0x79L},{253UL},{253UL},{248UL},{254UL},{0x56L},{0UL}},{{0UL},{0UL},{0UL},{0x56L},{254UL},{248UL},{253UL},{253UL},{0x79L},{255UL}},{{0x0AL},{255UL},{0x79L},{253UL},{253UL},{248UL},{254UL},{0x56L},{0UL},{0UL}},{{0UL},{0UL},{0x56L},{254UL},{248UL},{253UL},{253UL},{0x79L},{255UL},{0x0AL}},{{255UL},{0x79L},{253UL},{253UL},{248UL},{254UL},{0x56L},{0UL},{0UL},{0UL}},{{0UL},{0x56L},{254UL},{248UL},{253UL},{253UL},{0x79L},{255UL},{0x0AL},{255UL}}};
        union U0 ***l_1038 = &g_513;
        int8_t l_1077 = 0xD7L;
        uint8_t *l_1094 = &g_738;
        int32_t *l_1097 = (void*)0;
        int32_t *l_1098 = &l_119;
        uint64_t *l_1100[10] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
        int i, j, k;
        if ((func_46(&g_43, l_52[1], ((*l_53) &= p_31), l_55, (((safe_rshift_func_uint64_t_u_u(((safe_div_func_int8_t_s_s((safe_rshift_func_uint64_t_u_u((func_62(func_65((safe_rshift_func_uint16_t_u_u(l_52[6], ((l_119 ^= (g_3 <= (safe_div_func_uint8_t_u_u(func_75(l_45[4], (((!(((*l_55) = ((((safe_div_func_uint16_t_u_u((((((p_32 == p_32) , (-5L)) && g_6[7][0][3]) | l_52[0]) , 0xC11DL), l_45[9])) <= g_3) | 0L) < p_31)) >= p_31)) , g_6[7][0][3]) || l_45[9]), g_85, (*g_85)), g_6[7][0][3])))) <= l_45[7]))), g_85, l_55, g_3, l_120), g_39) , l_52[4]), g_147)), g_3)) > g_147), 52)) != l_45[9]) <= g_39)) != (-6L)))
        { /* block id: 434 */
            uint16_t l_974 = 65532UL;
            uint32_t *l_987 = (void*)0;
            (*g_700) = (l_971 = p_32);
            (*g_700) = (safe_div_func_int64_t_s_s(((l_974 & (&g_737[4] == ((((((safe_lshift_func_int64_t_s_s((safe_lshift_func_uint16_t_u_u(p_33, (safe_mod_func_int64_t_s_s((((((safe_rshift_func_int16_t_s_s(p_33, 10)) > (safe_mod_func_int64_t_s_s(l_119, l_45[9]))) < 0x30E44308A9A01D0FLL) < ((g_110 = 5UL) , (safe_mod_func_uint32_t_u_u((((p_31 < l_990) , 0xFBE4L) | p_33), l_52[1])))) , p_33), l_52[7])))), 25)) == p_32) , g_194) || 0UL) < l_974) , &g_737[4]))) != 65527UL), (-1L)));
        }
        else
        { /* block id: 439 */
            int32_t *l_993[2];
            uint16_t l_1003[4];
            int8_t l_1025 = 0x21L;
            int i;
            for (i = 0; i < 2; i++)
                l_993[i] = &g_158[2];
            for (i = 0; i < 4; i++)
                l_1003[i] = 65535UL;
            if (((*g_436) &= (safe_mul_func_int16_t_s_s(l_119, p_31))))
            { /* block id: 441 */
                return l_990;
            }
            else
            { /* block id: 443 */
                for (g_118 = 0; (g_118 < 16); g_118 = safe_add_func_int32_t_s_s(g_118, 3))
                { /* block id: 446 */
                    return p_32;
                }
                l_996--;
            }
            for (l_996 = (-5); (l_996 == 23); ++l_996)
            { /* block id: 453 */
                int64_t *l_1015 = (void*)0;
                int64_t *l_1016 = &g_108[4];
                int32_t l_1021 = 0L;
                if ((g_1001 , ((!g_802) | ((*g_436) = ((++l_1003[3]) , (l_1017 &= (0x3FBFC194L && ((func_62((safe_rshift_func_int16_t_s_s((safe_lshift_func_int64_t_s_s(((*l_1016) = (((0xEB7AL | (((++l_1010[3][0][0]) , p_32) || (p_31 > ((safe_lshift_func_uint32_t_u_s((l_45[0] || p_33), (((l_119 || p_31) > 0UL) >= p_33))) <= 0x539F0824L)))) && g_266.f0) , p_31)), l_971)), g_118)), g_103) , 6L) && p_31))))))))
                { /* block id: 459 */
                    uint32_t l_1022 = 1UL;
                    int32_t *l_1026 = &l_1017;
                    if (p_33)
                    { /* block id: 460 */
                        int32_t l_1018 = (-2L);
                        (*g_700) = ((l_1018 = g_86) | l_1010[3][0][0]);
                    }
                    else
                    { /* block id: 463 */
                        int32_t l_1019 = 1L;
                        int32_t l_1020 = (-6L);
                        l_1022++;
                        (*g_700) = (65535UL == p_31);
                        if (l_1025)
                            continue;
                        l_1026 = (p_33 , (void*)0);
                    }
                }
                else
                { /* block id: 469 */
                    l_1021 ^= (*g_436);
                }
                for (p_32 = 9; (p_32 > 18); ++p_32)
                { /* block id: 474 */
                    int8_t l_1035 = (-1L);
                    if ((*g_700))
                    { /* block id: 475 */
                        uint8_t *l_1029 = &l_52[2];
                        uint8_t *l_1030 = &l_990;
                        int16_t *l_1036[6] = {&g_462[1][2],&g_462[1][2],&g_462[1][2],&g_462[1][2],&g_462[1][2],&g_462[1][2]};
                        const int32_t l_1037 = 0x5CDDF5ADL;
                        int32_t l_1040 = 0x084AAF67L;
                        int i;
                        if (l_45[0])
                            break;
                        l_1040 |= ((((*l_1029) &= 255UL) | ((*l_1030)--)) <= ((safe_sub_func_int16_t_s_s(((*l_55) = l_1035), (g_778 = g_615.f0))) , (0xBB4F1802L && (((p_32 | (l_1037 & l_1010[3][0][0])) == ((l_1038 == l_1039[4][5][1]) , 0xDC98L)) < 0x2A6D1A8CBDAF799DLL))));
                        return p_32;
                    }
                    else
                    { /* block id: 483 */
                        uint8_t **l_1051[5] = {&g_737[4],&g_737[4],&g_737[4],&g_737[4],&g_737[4]};
                        int32_t l_1070[7];
                        uint8_t **l_1072 = &g_737[4];
                        uint8_t ***l_1071 = &l_1072;
                        uint8_t **l_1074 = &g_737[1];
                        uint8_t ***l_1073 = &l_1074;
                        uint32_t *l_1075 = (void*)0;
                        uint32_t *l_1076[9] = {&g_390[0],&g_390[3],&g_390[0],&g_390[3],&g_390[0],&g_390[3],&g_390[0],&g_390[3],&g_390[0]};
                        int i;
                        for (i = 0; i < 7; i++)
                            l_1070[i] = 0x193666E6L;
                        if (p_33)
                            break;
                        if (l_1041)
                            break;
                        l_971 = (((safe_add_func_int64_t_s_s((safe_add_func_uint32_t_u_u((((safe_mul_func_int8_t_s_s(l_52[1], (!(safe_mul_func_int8_t_s_s((&g_737[4] != (g_738 , l_1051[1])), g_194))))) < (safe_rshift_func_uint32_t_u_s(((((safe_div_func_int32_t_s_s((l_1070[5] = (safe_rshift_func_int64_t_s_s(((safe_sub_func_int16_t_s_s((safe_div_func_int8_t_s_s((safe_sub_func_int64_t_s_s(g_651[0][8][0], (safe_lshift_func_int8_t_s_u(((g_39 &= (safe_mod_func_uint8_t_u_u((safe_add_func_uint32_t_u_u((g_390[1] = ((l_1070[5] , &g_867) != ((*l_1073) = ((*l_1071) = (void*)0)))), 0x41D198E6L)), 1UL))) | p_31), 2)))), p_33)), p_31)) , 0x9C32A8DB7D771052LL), 19))), p_31)) || p_33) , l_119) <= l_1021), 18))) | g_110), l_52[7])), 0x80FF9628FEB7E4C1LL)) , l_1077) && 0xDFL);
                    }
                }
            }
        }
        l_1017 = (safe_rshift_func_uint16_t_u_u(((g_110 < (0x1CC1D26FL | (0UL || (0x9854L ^ l_996)))) & 0x66A2129AL), 14));
        (*g_700) = ((g_103 = ((g_421[3] , (g_43 = ((9L || (*g_700)) == (((*g_85) , ((((safe_sub_func_uint32_t_u_u((safe_unary_minus_func_int64_t_s(l_971)), (safe_mod_func_int64_t_s_s((safe_unary_minus_func_int64_t_s((safe_rshift_func_int32_t_s_s(((*l_1098) ^= (safe_rshift_func_uint32_t_u_s((((0xDF826E75E8519C6ALL ^ (((-10L) & (safe_rshift_func_uint64_t_u_s(0x51BEE81713AE428BLL, 4))) | ((safe_mul_func_uint8_t_u_u(((*l_1094)++), ((((l_1010[3][0][0] != g_147) , (-1L)) > 0x0B65L) | 0xE0BFL))) > l_1017))) , (-3L)) & 0xDB0FL), 18))), 1)))), 18446744073709551615UL)))) & (*g_85)) , 0xCC8698AE33BADA0DLL) < l_52[1])) || l_1099)))) ^ l_1017)) < p_33);
    }
    else
    { /* block id: 502 */
        uint32_t *l_1101 = &l_1041;
        int32_t l_1104 = 0L;
        int16_t ***l_1113[1];
        int32_t **l_1116[8] = {&g_236,&g_236,&g_236,&g_236,&g_236,&g_236,&g_236,&g_236};
        int i;
        for (i = 0; i < 1; i++)
            l_1113[i] = &g_1111[3];
        (*g_700) = (l_1101 == &l_1041);
        (*g_700) = (g_500.f0 ^ (safe_lshift_func_uint32_t_u_s((((((*l_55) = ((g_103 , &l_1101) != (void*)0)) ^ (l_1104 > (l_1104 | l_1104))) && (safe_mul_func_int64_t_s_s((((((((safe_mod_func_int64_t_s_s((safe_lshift_func_uint64_t_u_u(((g_1111[0] = g_1111[0]) == (g_1114 = g_1114)), l_1104)), l_119)) , p_32) ^ l_1104) >= (*g_236)) , (void*)0) != (void*)0) >= l_1041), g_39))) , l_990), 18)));
        g_436 = &l_119;
    }
    (*g_700) = ((safe_mod_func_uint64_t_u_u((g_615 , (safe_mul_func_int16_t_s_s(0xD4C2L, ((*g_85) = ((g_505[5][0][0] <= ((((safe_sub_func_int32_t_s_s(p_33, (safe_lshift_func_uint32_t_u_u(((((*l_1139) = (g_103 ^= (safe_add_func_int32_t_s_s(((l_1137 = &g_6[1][2][4]) != &g_158[0]), (safe_unary_minus_func_uint8_t_u(p_33)))))) , (void*)0) != (void*)0), 17)))) > 18446744073709551615UL) , l_1140[0][6][6]) == (void*)0)) >= p_32))))), g_3)) > 0x1CB149C8FA4E3055LL);
    return p_32;
}


/* ------------------------------------------ */
/* 
 * reads : g_147 g_6 g_99 g_128 g_103 g_85 g_86 g_158 g_198 g_194 g_43 g_111 g_134 g_228 g_39 g_108
 * writes: g_147 g_111 g_158 g_99 g_103 g_86 g_108 g_194 g_118 g_236 g_110
 */
static int64_t  func_46(const int16_t * p_47, uint32_t  p_48, uint16_t  p_49, int16_t * p_50, uint16_t  p_51)
{ /* block id: 51 */
    uint8_t l_162 = 255UL;
    int32_t l_165[10] = {0xE6D32158L,0xE6D32158L,0x72656316L,0xE6D32158L,0xE6D32158L,0x72656316L,0xE6D32158L,0xE6D32158L,0x72656316L,0xE6D32158L};
    int32_t l_169 = 9L;
    uint32_t l_171 = 1UL;
    uint64_t l_327 = 18446744073709551609UL;
    union U0 *l_332 = &g_156;
    int32_t *l_336 = &g_158[4];
    int32_t **l_337 = &l_336;
    uint16_t l_351 = 0x80B8L;
    uint16_t *l_352 = &l_351;
    uint8_t *l_356 = &l_162;
    union U0 **l_515[6][5] = {{&l_332,&l_332,&l_332,&l_332,&l_332},{&l_332,&l_332,&l_332,&l_332,&l_332},{&l_332,&l_332,&l_332,&l_332,(void*)0},{&l_332,&l_332,&l_332,&l_332,&l_332},{&l_332,&l_332,&l_332,&l_332,&l_332},{&l_332,&l_332,&l_332,&l_332,&l_332}};
    const uint16_t *l_584 = &g_86;
    const uint16_t **l_583 = &l_584;
    const uint16_t *** const l_582 = &l_583;
    const uint16_t *** const *l_581 = &l_582;
    const uint16_t **l_587 = (void*)0;
    const uint16_t *** const l_586 = &l_587;
    const uint16_t *** const *l_585 = &l_586;
    const uint32_t l_593 = 4294967295UL;
    uint8_t l_697 = 0x6CL;
    int8_t l_708 = 0x68L;
    uint32_t l_741 = 0xEF510774L;
    uint64_t l_766 = 1UL;
    uint32_t *l_791 = (void*)0;
    uint32_t **l_790 = &l_791;
    uint64_t *l_950 = &l_327;
    int i, j;
    for (g_147 = 0; (g_147 <= 3); g_147 += 1)
    { /* block id: 54 */
        int32_t *l_157 = &g_158[2];
        int32_t *l_159 = &g_158[2];
        int32_t *l_160 = &g_158[2];
        int32_t *l_161[6][1][9] = {{{&g_6[7][0][3],&g_158[2],(void*)0,&g_6[7][0][3],&g_158[2],&g_158[2],&g_6[7][0][3],(void*)0,&g_158[2]}},{{&g_6[7][0][3],&g_158[2],(void*)0,&g_3,(void*)0,&g_158[2],&g_6[7][0][3],&g_158[2],(void*)0}},{{&g_6[7][0][3],(void*)0,(void*)0,&g_6[7][0][3],&g_158[2],(void*)0,&g_6[7][0][3],&g_158[2],&g_158[2]}},{{&g_158[2],&g_158[2],&g_158[2],&g_3,&g_158[2],&g_158[2],&g_158[2],&g_158[2],&g_158[2]}},{{&g_6[7][0][3],&g_158[2],(void*)0,&g_6[7][0][3],&g_158[2],&g_158[2],&g_6[7][0][3],(void*)0,&g_158[2]}},{{&g_6[7][0][3],&g_158[2],(void*)0,&g_3,(void*)0,&g_158[2],&g_6[7][0][3],&g_158[2],(void*)0}}};
        uint32_t l_177 = 0x4A0B9419L;
        const uint16_t *l_202 = (void*)0;
        const uint16_t **l_201[8][4][3] = {{{&l_202,&l_202,&l_202},{&l_202,&l_202,(void*)0},{&l_202,(void*)0,&l_202},{&l_202,&l_202,&l_202}},{{&l_202,&l_202,(void*)0},{&l_202,&l_202,&l_202},{&l_202,&l_202,(void*)0},{&l_202,(void*)0,&l_202}},{{&l_202,&l_202,&l_202},{&l_202,&l_202,(void*)0},{&l_202,&l_202,&l_202},{&l_202,&l_202,(void*)0}},{{&l_202,(void*)0,&l_202},{&l_202,&l_202,&l_202},{&l_202,&l_202,(void*)0},{&l_202,&l_202,&l_202}},{{&l_202,&l_202,(void*)0},{&l_202,(void*)0,&l_202},{&l_202,&l_202,&l_202},{&l_202,&l_202,(void*)0}},{{&l_202,&l_202,&l_202},{&l_202,&l_202,(void*)0},{&l_202,(void*)0,&l_202},{&l_202,&l_202,&l_202}},{{&l_202,&l_202,(void*)0},{&l_202,&l_202,&l_202},{&l_202,&l_202,&l_202},{&l_202,&l_202,&l_202}},{{(void*)0,&l_202,&l_202},{&l_202,&l_202,&l_202},{(void*)0,&l_202,&l_202},{&l_202,&l_202,&l_202}}};
        uint64_t l_214[8][1][1];
        uint8_t l_313 = 1UL;
        int i, j, k;
        for (i = 0; i < 8; i++)
        {
            for (j = 0; j < 1; j++)
            {
                for (k = 0; k < 1; k++)
                    l_214[i][j][k] = 2UL;
            }
        }
        ++l_162;
        for (g_111 = 0; (g_111 <= 3); g_111 += 1)
        { /* block id: 58 */
            uint32_t l_166 = 1UL;
            int32_t l_170[3];
            uint64_t *l_174 = &g_99;
            int i;
            for (i = 0; i < 3; i++)
                l_170[i] = 0x879FC720L;
            --l_166;
            l_171--;
            (*l_159) = ((void*)0 == l_174);
            if ((0x5D98L <= g_147))
            { /* block id: 62 */
                int64_t l_175 = 1L;
                int32_t l_176 = 0L;
                --l_177;
                if (p_51)
                    continue;
            }
            else
            { /* block id: 65 */
                return g_6[5][4][3];
            }
        }
        for (g_99 = 0; (g_99 <= 3); g_99 += 1)
        { /* block id: 71 */
            uint16_t l_190[6];
            int32_t l_197 = (-1L);
            int16_t *l_229 = &g_43;
            const uint16_t l_232 = 0x0633L;
            int32_t l_237 = 8L;
            int32_t l_238 = 1L;
            int32_t l_239[2];
            uint64_t l_240 = 0UL;
            uint8_t l_243 = 0x59L;
            int32_t l_246 = 1L;
            const uint32_t l_247 = 4294967286UL;
            int32_t l_294 = 0x0BD0EFFEL;
            uint16_t **l_304 = &g_85;
            int i;
            for (i = 0; i < 6; i++)
                l_190[i] = 0x5504L;
            for (i = 0; i < 2; i++)
                l_239[i] = 0xD56C0C75L;
            for (g_111 = 0; (g_111 <= 3); g_111 += 1)
            { /* block id: 74 */
                int64_t l_192 = (-1L);
                int32_t l_210[1][4][3] = {{{0xF046711DL,0xF046711DL,0x7B98909EL},{0L,0x7B98909EL,0x7B98909EL},{0x7B98909EL,0xA6B4D2B5L,0x2FF8B2BEL},{0L,0xA6B4D2B5L,0L}}};
                int8_t l_211[2];
                int i, j, k;
                for (i = 0; i < 2; i++)
                    l_211[i] = 3L;
                for (p_51 = 0; (p_51 <= 7); p_51 += 1)
                { /* block id: 77 */
                    uint64_t *l_182 = (void*)0;
                    uint64_t *l_183 = &g_103;
                    int64_t *l_191[2];
                    uint32_t l_208 = 0x82288B61L;
                    int32_t l_213 = 0x6D5FB649L;
                    int8_t *l_221 = &l_211[1];
                    int i;
                    for (i = 0; i < 2; i++)
                        l_191[i] = &g_108[2];
                    if (((safe_rshift_func_int64_t_s_u((g_128[(g_99 + 4)] != (((*l_183) = g_6[7][0][3]) && g_103)), 34)) ^ ((safe_div_func_uint32_t_u_u((g_128[6] ^ (safe_mul_func_int8_t_s_s((safe_rshift_func_int64_t_s_s((g_108[1] = (((&p_51 == (((*g_85) |= (p_48 < ((-1L) & p_48))) , (void*)0)) , 0x29L) != l_190[2])), p_49)), 0xF4L))), g_6[0][2][3])) , g_86)))
                    { /* block id: 81 */
                        uint8_t *l_193[6][1][10] = {{{(void*)0,&l_162,&l_162,&l_162,&l_162,(void*)0,&l_162,&l_162,&l_162,(void*)0}},{{(void*)0,(void*)0,&l_162,(void*)0,(void*)0,&l_162,(void*)0,&l_162,&l_162,&l_162}},{{&l_162,(void*)0,&l_162,&l_162,&l_162,&l_162,(void*)0,(void*)0,&l_162,&l_162}},{{&l_162,&l_162,&l_162,&l_162,(void*)0,&l_162,&l_162,&l_162,&l_162,(void*)0}},{{&l_162,(void*)0,(void*)0,&l_162,&l_162,&l_162,&l_162,&l_162,&l_162,&l_162}},{{(void*)0,&l_162,(void*)0,&l_162,(void*)0,&l_162,&l_162,&l_162,&l_162,&l_162}}};
                        uint32_t *l_203 = (void*)0;
                        int8_t *l_209 = (void*)0;
                        int i, j, k;
                        if (l_192)
                            break;
                        g_158[g_99] &= ((g_194 = l_192) & (g_6[7][0][3] & (l_197 = (safe_mod_func_int32_t_s_s(0xA1EA45FBL, 0x84E1F444L)))));
                        l_210[0][1][0] ^= (((g_198 , (safe_add_func_uint32_t_u_u(((void*)0 == l_201[4][2][1]), ((l_203 == ((g_118 = (((safe_mul_func_uint64_t_u_u((((((g_194 > ((g_158[0] |= l_192) , (safe_lshift_func_uint64_t_u_u((l_165[3] > ((p_49 && 0UL) , g_158[g_99])), 50)))) == 0L) & l_208) && 0xDC7F051BL) ^ g_128[(g_99 + 4)]), 0x15C10D9C3EBA553ALL)) | l_192) <= 0xC7L)) , (void*)0)) > 0x6E56L)))) > g_147) != 0UL);
                        return l_192;
                    }
                    else
                    { /* block id: 90 */
                        int64_t l_212 = 0x62B502ABD1A8F1CCLL;
                        ++l_214[5][0][0];
                    }
                    l_213 &= (p_48 != (0xFBE3D4A7L || (safe_lshift_func_int64_t_s_s((((*l_221) ^= (safe_div_func_uint64_t_u_u(((*g_85) | (*p_47)), l_192))) ^ g_111), (safe_div_func_int8_t_s_s(((safe_sub_func_uint32_t_u_u(p_49, ((g_134 <= ((*l_157) |= l_171)) && p_49))) > p_51), 255UL))))));
                }
                g_158[(g_111 + 1)] ^= (0xD0L || (safe_sub_func_int8_t_s_s((g_228[1] , ((-1L) > (p_47 != l_229))), (g_128[(g_111 + 2)] , ((((((void*)0 != &l_165[9]) && ((((g_108[1] = (safe_mul_func_int8_t_s_s((0x3920L && (*p_50)), g_43))) , &g_85) == (void*)0) ^ (*g_85))) != 0x05EEFE5FL) < l_232) || 0x5A96L)))));
                if (l_190[2])
                    break;
                for (l_177 = 0; (l_177 <= 6); l_177 += 1)
                { /* block id: 102 */
                    int32_t **l_234 = (void*)0;
                    int32_t **l_235[4][1][10] = {{{&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8],&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8]}},{{&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8],&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8]}},{{&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8],&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8]}},{{&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8],&l_161[0][0][8],&l_161[1][0][5],&l_161[5][0][7],&l_161[1][0][5],&l_161[0][0][8]}}};
                    int i, j, k;
                    for (l_162 = 0; (l_162 <= 6); l_162 += 1)
                    { /* block id: 105 */
                        int32_t *l_233 = &l_210[0][1][0];
                        l_233 = &l_197;
                    }
                    g_236 = &l_197;
                    for (g_110 = 0; (g_110 <= 6); g_110 += 1)
                    { /* block id: 111 */
                        return g_39;
                    }
                }
            }
            l_197 |= 0L;
            --l_240;
            l_243++;
        }
        for (g_111 = 0; (g_111 <= 3); g_111 += 1)
        { /* block id: 148 */
            int16_t l_316 = 0L;
            int32_t l_317 = 0xE78F07ABL;
            int32_t l_318 = 0xACA410F3L;
            int32_t l_319 = 0xF7C42D48L;
            int32_t l_324 = 0x636009EDL;
            int32_t l_326[9][5][1] = {{{5L},{0xE801B891L},{0L},{0xE801B891L},{5L}},{{(-1L)},{(-1L)},{5L},{0xE801B891L},{0L}},{{0xE801B891L},{5L},{(-1L)},{(-1L)},{5L}},{{0xE801B891L},{0L},{0xE801B891L},{5L},{(-1L)}},{{(-1L)},{5L},{0xE801B891L},{0L},{0xE801B891L}},{{5L},{(-1L)},{(-1L)},{5L},{0xE801B891L}},{{0L},{0xE801B891L},{5L},{(-1L)},{(-1L)}},{{5L},{0xE801B891L},{0L},{0xE801B891L},{5L}},{{(-1L)},{(-1L)},{5L},{0xE801B891L},{0L}}};
            union U0 *l_330 = (void*)0;
            int8_t l_335[4];
            int i, j, k;
            for (i = 0; i < 4; i++)
                l_335[i] = 9L;
            for (l_169 = 3; (l_169 >= 0); l_169 -= 1)
            { /* block id: 151 */
                uint16_t l_320 = 0x6B89L;
                int32_t l_323 = (-4L);
                int32_t l_325 = 6L;
                union U0 **l_331[9][8] = {{(void*)0,&l_330,&l_330,&l_330,(void*)0,&l_330,&l_330,(void*)0},{(void*)0,&l_330,&l_330,(void*)0,&l_330,&l_330,(void*)0,&l_330},{&l_330,&l_330,&l_330,(void*)0,(void*)0,(void*)0,&l_330,&l_330},{&l_330,&l_330,&l_330,&l_330,(void*)0,&l_330,(void*)0,&l_330},{&l_330,&l_330,&l_330,&l_330,&l_330,(void*)0,(void*)0,(void*)0},{&l_330,&l_330,&l_330,&l_330,&l_330,&l_330,&l_330,&l_330},{&l_330,&l_330,&l_330,&l_330,&l_330,&l_330,&l_330,&l_330},{&l_330,&l_330,&l_330,(void*)0,(void*)0,(void*)0,&l_330,&l_330},{&l_330,&l_330,&l_330,&l_330,(void*)0,&l_330,(void*)0,&l_330}};
                int i, j;
                l_320--;
                --l_327;
                l_332 = l_330;
                for (l_162 = 1; (l_162 <= 9); l_162 += 1)
                { /* block id: 157 */
                    return g_108[3];
                }
            }
            l_335[2] = ((*l_159) = (((--g_194) , &g_128[7]) != l_161[2][0][2]));
        }
    }
    return (*l_336);
}


/* ------------------------------------------ */
/* 
 * reads : g_128 g_110 g_103 g_85 g_147 g_118 g_156
 * writes: g_128 g_110 g_134 g_86 g_111 g_108
 */
static union U0  func_62(uint8_t  p_63, uint32_t  p_64)
{ /* block id: 35 */
    uint32_t * const l_124 = &g_110;
    int32_t l_127 = (-6L);
    int32_t *l_149 = &l_127;
    int32_t l_151 = 0L;
    int32_t l_152 = (-1L);
    uint32_t l_153 = 0xC998684FL;
    if ((g_128[6] &= (safe_mul_func_int16_t_s_s(((&g_110 != l_124) , 1L), (safe_rshift_func_uint8_t_u_u(l_127, 6))))))
    { /* block id: 37 */
        int64_t l_133 = (-1L);
        int32_t l_139 = (-1L);
        for (g_110 = (-30); (g_110 == 45); g_110 = safe_add_func_uint16_t_u_u(g_110, 1))
        { /* block id: 40 */
            const int32_t l_146 = 0x87059067L;
            int32_t *l_148 = &g_6[2][4][0];
            l_149 = ((safe_mod_func_int32_t_s_s((g_134 = (l_133 ^= (-10L))), (safe_sub_func_int8_t_s_s(((((safe_mod_func_uint64_t_u_u(g_103, (((*g_85) = l_139) & ((~(!l_139)) , p_63)))) < ((safe_sub_func_int8_t_s_s(l_139, (safe_mul_func_uint64_t_u_u((l_146 >= g_147), ((-1L) >= 0x16L))))) != p_63)) , g_118) == 0x33L), 0UL)))) , l_148);
        }
    }
    else
    { /* block id: 46 */
        int32_t *l_150[9][1] = {{&g_6[7][0][3]},{(void*)0},{(void*)0},{&g_6[7][0][3]},{(void*)0},{(void*)0},{&g_6[7][0][3]},{(void*)0},{(void*)0}};
        int i, j;
        for (g_111 = 0; g_111 < 6; g_111 += 1)
        {
            g_108[g_111] = (-8L);
        }
        --l_153;
    }
    return g_156;
}


/* ------------------------------------------ */
/* 
 * reads : g_2
 * writes:
 */
static uint8_t  func_65(uint16_t  p_66, int16_t * p_67, uint16_t * p_68, int8_t  p_69, uint32_t * p_70)
{ /* block id: 32 */
    volatile int32_t *l_121 = &g_2;
    l_121 = &g_2;
    return (*l_121);
}


/* ------------------------------------------ */
/* 
 * reads : g_6 g_99 g_85 g_3 g_86 g_43 g_2 g_111
 * writes: g_99 g_103 g_86 g_108 g_110 g_111 g_113
 */
static uint8_t  func_75(int32_t  p_76, int16_t  p_77, uint16_t * p_78, uint16_t  p_79)
{ /* block id: 15 */
    int32_t *l_87[5][4][10] = {{{&g_3,(void*)0,&g_6[7][1][3],&g_3,(void*)0,(void*)0,&g_6[3][3][1],&g_6[3][3][1],(void*)0,(void*)0},{(void*)0,&g_6[3][3][1],&g_6[3][3][1],(void*)0,(void*)0,&g_3,&g_6[7][1][3],(void*)0,&g_3,&g_6[3][3][1]},{(void*)0,&g_3,(void*)0,&g_6[7][0][3],&g_6[7][0][3],&g_6[0][1][4],&g_6[3][3][1],&g_6[7][1][3],&g_3,&g_6[0][1][4]},{&g_6[1][4][4],&g_3,&g_6[7][0][3],(void*)0,&g_6[1][4][4],(void*)0,(void*)0,&g_6[1][4][4],(void*)0,&g_6[7][0][3]}},{{(void*)0,(void*)0,&g_6[7][0][3],&g_3,&g_6[7][0][3],&g_6[1][4][4],&g_6[7][0][3],&g_6[7][1][3],(void*)0,&g_6[7][0][3]},{(void*)0,&g_3,(void*)0,&g_6[0][1][4],&g_6[1][4][4],&g_3,&g_6[7][0][3],(void*)0,&g_6[1][4][4],(void*)0},{&g_3,(void*)0,&g_6[3][3][1],(void*)0,&g_6[7][0][3],&g_6[7][0][3],(void*)0,&g_6[3][3][1],(void*)0,&g_3},{&g_3,&g_3,&g_6[7][1][3],&g_6[1][4][4],(void*)0,&g_3,&g_6[3][3][1],&g_3,(void*)0,&g_6[7][1][3]}},{{(void*)0,&g_3,&g_6[3][3][1],&g_3,(void*)0,&g_6[1][4][4],&g_6[7][1][3],&g_3,&g_3,&g_3},{(void*)0,&g_6[3][3][1],(void*)0,&g_6[7][0][3],&g_6[7][0][3],(void*)0,&g_6[3][3][1],(void*)0,&g_3,(void*)0},{&g_6[1][4][4],(void*)0,&g_6[7][0][3],&g_3,&g_6[1][4][4],&g_6[0][1][4],(void*)0,&g_3,(void*)0,&g_6[7][0][3]},{(void*)0,&g_6[7][1][3],&g_6[7][0][3],&g_6[1][4][4],&g_6[7][0][3],&g_3,&g_6[7][0][3],(void*)0,(void*)0,&g_6[7][0][3]}},{{(void*)0,&g_6[1][4][4],(void*)0,(void*)0,&g_6[1][4][4],(void*)0,&g_6[7][0][3],&g_6[3][3][1],&g_6[0][1][4],&g_6[7][0][3]},{&g_6[1][4][4],(void*)0,&g_3,&g_6[7][0][3],(void*)0,&g_6[7][1][3],&g_6[7][0][3],&g_6[1][4][4],&g_6[7][0][3],&g_3},{&g_6[1][4][4],&g_3,(void*)0,(void*)0,&g_6[7][0][3],&g_3,&g_3,&g_3,&g_3,&g_6[7][0][3]},{&g_3,&g_3,&g_3,&g_3,&g_6[7][0][3],(void*)0,(void*)0,&g_3,&g_6[1][4][4],&g_3}},{{&g_6[7][0][3],&g_6[1][4][4],&g_6[7][0][3],&g_6[7][1][3],(void*)0,&g_6[7][0][3],&g_3,(void*)0,&g_6[1][4][4],&g_6[7][0][3]},{&g_6[0][1][4],&g_6[3][3][1],&g_6[7][1][3],&g_3,&g_6[0][1][4],&g_6[7][0][3],&g_6[7][0][3],&g_6[0][1][4],&g_3,&g_6[7][1][3]},{&g_6[7][0][3],&g_6[7][0][3],&g_6[7][1][3],(void*)0,(void*)0,&g_6[0][1][4],&g_6[7][1][3],(void*)0,&g_6[7][0][3],(void*)0},{&g_3,(void*)0,&g_6[7][0][3],&g_6[7][0][3],&g_6[0][1][4],&g_6[3][3][1],&g_6[7][1][3],&g_3,&g_6[0][1][4],&g_6[7][0][3]}}};
    uint16_t ***l_114 = &g_113;
    int i, j, k;
    l_87[1][0][9] = l_87[1][0][9];
    if (g_6[2][3][3])
    { /* block id: 17 */
        int32_t *l_88[6];
        int16_t l_93 = 0xE979L;
        uint64_t *l_98 = &g_99;
        uint64_t *l_102 = &g_103;
        int16_t *l_106 = (void*)0;
        int64_t *l_107 = &g_108[1];
        uint32_t *l_109 = &g_110;
        int i;
        for (i = 0; i < 6; i++)
            l_88[i] = &g_6[1][0][1];
        g_111 |= (((*l_109) = (((((&g_2 == l_88[1]) , ((*l_107) = ((safe_sub_func_uint32_t_u_u((l_93 & ((&p_76 != (void*)0) >= (safe_rshift_func_int64_t_s_s(((((safe_mod_func_uint8_t_u_u(((((*l_102) = ((*l_98)++)) , (safe_rshift_func_uint16_t_u_u(((*g_85) = ((&l_93 == (l_106 = &p_77)) && (p_77 >= 0x446388D17825FA2FLL))), 15))) > g_6[7][0][3]), g_3)) && g_86) != p_76) , g_6[7][0][3]), g_6[0][1][3])))), p_76)) < p_79))) || g_43) == g_2) || 0L)) , (-8L));
    }
    else
    { /* block id: 25 */
        l_87[1][3][4] = l_87[4][2][4];
        return p_79;
    }
    (*l_114) = &p_78;
    return g_99;
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    transparent_crc(g_2, "g_2", print_hash_value);
    transparent_crc(g_3, "g_3", print_hash_value);
    for (i = 0; i < 8; i++)
    {
        for (j = 0; j < 5; j++)
        {
            for (k = 0; k < 6; k++)
            {
                transparent_crc(g_6[i][j][k], "g_6[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_39, "g_39", print_hash_value);
    transparent_crc(g_43, "g_43", print_hash_value);
    transparent_crc(g_54, "g_54", print_hash_value);
    transparent_crc(g_86, "g_86", print_hash_value);
    transparent_crc(g_99, "g_99", print_hash_value);
    transparent_crc(g_103, "g_103", print_hash_value);
    for (i = 0; i < 6; i++)
    {
        transparent_crc(g_108[i], "g_108[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_110, "g_110", print_hash_value);
    transparent_crc(g_111, "g_111", print_hash_value);
    transparent_crc(g_118, "g_118", print_hash_value);
    for (i = 0; i < 8; i++)
    {
        transparent_crc(g_128[i], "g_128[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_134, "g_134", print_hash_value);
    transparent_crc(g_147, "g_147", print_hash_value);
    transparent_crc(g_156.f0, "g_156.f0", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        transparent_crc(g_158[i], "g_158[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_194, "g_194", print_hash_value);
    transparent_crc(g_198.f0, "g_198.f0", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        transparent_crc(g_228[i].f0, "g_228[i].f0", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_266.f0, "g_266.f0", print_hash_value);
    transparent_crc(g_363, "g_363", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        transparent_crc(g_390[i], "g_390[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 9; i++)
    {
        transparent_crc(g_421[i], "g_421[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 8; i++)
    {
        for (j = 0; j < 6; j++)
        {
            transparent_crc(g_445[i][j].f0, "g_445[i][j].f0", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_454[i].f0, "g_454[i].f0", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 4; j++)
        {
            transparent_crc(g_462[i][j], "g_462[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_479, "g_479", print_hash_value);
    transparent_crc(g_500.f0, "g_500.f0", print_hash_value);
    for (i = 0; i < 8; i++)
    {
        for (j = 0; j < 7; j++)
        {
            for (k = 0; k < 4; k++)
            {
                transparent_crc(g_505[i][j][k], "g_505[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_506, "g_506", print_hash_value);
    transparent_crc(g_615.f0, "g_615.f0", print_hash_value);
    for (i = 0; i < 4; i++)
    {
        for (j = 0; j < 9; j++)
        {
            for (k = 0; k < 4; k++)
            {
                transparent_crc(g_651[i][j][k], "g_651[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_674, "g_674", print_hash_value);
    transparent_crc(g_738, "g_738", print_hash_value);
    transparent_crc(g_757.f0, "g_757.f0", print_hash_value);
    transparent_crc(g_778, "g_778", print_hash_value);
    transparent_crc(g_802, "g_802", print_hash_value);
    transparent_crc(g_879.f0, "g_879.f0", print_hash_value);
    for (i = 0; i < 8; i++)
    {
        for (j = 0; j < 6; j++)
        {
            for (k = 0; k < 5; k++)
            {
                transparent_crc(g_905[i][j][k].f0, "g_905[i][j][k].f0", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_939, "g_939", print_hash_value);
    transparent_crc(g_1001.f0, "g_1001.f0", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 2; j++)
        {
            transparent_crc(g_1142[i][j], "g_1142[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_1144, "g_1144", print_hash_value);
    transparent_crc(g_1156, "g_1156", print_hash_value);
    transparent_crc(g_1171.f0, "g_1171.f0", print_hash_value);
    transparent_crc(g_1216, "g_1216", print_hash_value);
    transparent_crc(g_1274.f0, "g_1274.f0", print_hash_value);
    transparent_crc(g_1325.f0, "g_1325.f0", print_hash_value);
    transparent_crc(g_1347, "g_1347", print_hash_value);
    transparent_crc(g_1428, "g_1428", print_hash_value);
    transparent_crc(g_1677, "g_1677", print_hash_value);
    transparent_crc(g_1729.f0, "g_1729.f0", print_hash_value);
    transparent_crc(g_1748, "g_1748", print_hash_value);
    transparent_crc(g_1883, "g_1883", print_hash_value);
    transparent_crc(g_1993, "g_1993", print_hash_value);
    transparent_crc(g_2087, "g_2087", print_hash_value);
    transparent_crc(g_2134.f0, "g_2134.f0", print_hash_value);
    transparent_crc(g_2145, "g_2145", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 2; j++)
        {
            for (k = 0; k < 5; k++)
            {
                transparent_crc(g_2150[i][j][k], "g_2150[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_2252, "g_2252", print_hash_value);
    transparent_crc(g_2299.f0, "g_2299.f0", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 6; j++)
        {
            for (k = 0; k < 6; k++)
            {
                transparent_crc(g_2423[i][j][k], "g_2423[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_2449, "g_2449", print_hash_value);
    transparent_crc(g_2451, "g_2451", print_hash_value);
    transparent_crc(g_2462, "g_2462", print_hash_value);
    transparent_crc(g_2526, "g_2526", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 1; j++)
        {
            transparent_crc(g_2579[i][j], "g_2579[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_2654.f0, "g_2654.f0", print_hash_value);
    transparent_crc(g_2662, "g_2662", print_hash_value);
    transparent_crc(g_2665, "g_2665", print_hash_value);
    for (i = 0; i < 6; i++)
    {
        for (j = 0; j < 3; j++)
        {
            transparent_crc(g_2738[i][j].f0, "g_2738[i][j].f0", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_2805, "g_2805", print_hash_value);
    transparent_crc(g_2858, "g_2858", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 699
XXX total union variables: 19

XXX non-zero bitfields defined in structs: 0
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 0
breakdown:
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 0
XXX times a bitfields struct on LHS: 0
XXX times a bitfields struct on RHS: 0
XXX times a single bitfield on LHS: 0
XXX times a single bitfield on RHS: 0

XXX max expression depth: 44
breakdown:
   depth: 1, occurrence: 300
   depth: 2, occurrence: 82
   depth: 3, occurrence: 4
   depth: 4, occurrence: 1
   depth: 5, occurrence: 6
   depth: 6, occurrence: 3
   depth: 7, occurrence: 1
   depth: 9, occurrence: 1
   depth: 11, occurrence: 2
   depth: 12, occurrence: 1
   depth: 14, occurrence: 1
   depth: 16, occurrence: 1
   depth: 17, occurrence: 3
   depth: 18, occurrence: 6
   depth: 19, occurrence: 2
   depth: 20, occurrence: 4
   depth: 21, occurrence: 1
   depth: 22, occurrence: 4
   depth: 23, occurrence: 2
   depth: 24, occurrence: 5
   depth: 25, occurrence: 2
   depth: 27, occurrence: 2
   depth: 28, occurrence: 4
   depth: 29, occurrence: 2
   depth: 30, occurrence: 2
   depth: 31, occurrence: 3
   depth: 32, occurrence: 2
   depth: 33, occurrence: 3
   depth: 34, occurrence: 2
   depth: 35, occurrence: 1
   depth: 36, occurrence: 1
   depth: 37, occurrence: 1
   depth: 38, occurrence: 1
   depth: 39, occurrence: 2
   depth: 44, occurrence: 1

XXX total number of pointers: 567

XXX times a variable address is taken: 1390
XXX times a pointer is dereferenced on RHS: 310
breakdown:
   depth: 1, occurrence: 227
   depth: 2, occurrence: 65
   depth: 3, occurrence: 17
   depth: 4, occurrence: 1
XXX times a pointer is dereferenced on LHS: 374
breakdown:
   depth: 1, occurrence: 310
   depth: 2, occurrence: 49
   depth: 3, occurrence: 13
   depth: 4, occurrence: 2
XXX times a pointer is compared with null: 43
XXX times a pointer is compared with address of another variable: 14
XXX times a pointer is compared with another pointer: 24
XXX times a pointer is qualified to be dereferenced: 8886

XXX max dereference level: 5
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 1531
   level: 2, occurrence: 384
   level: 3, occurrence: 114
   level: 4, occurrence: 28
   level: 5, occurrence: 15
XXX number of pointers point to pointers: 260
XXX number of pointers point to scalars: 294
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 30.5
XXX average alias set size: 1.39

XXX times a non-volatile is read: 2164
XXX times a non-volatile is write: 1140
XXX times a volatile is read: 118
XXX    times read thru a pointer: 26
XXX times a volatile is write: 64
XXX    times written thru a pointer: 42
XXX times a volatile is available for access: 6.96e+03
XXX percentage of non-volatile access: 94.8

XXX forward jumps: 2
XXX backward jumps: 11

XXX stmts: 314
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 26
   depth: 1, occurrence: 28
   depth: 2, occurrence: 37
   depth: 3, occurrence: 56
   depth: 4, occurrence: 83
   depth: 5, occurrence: 84

XXX percentage a fresh-made variable is used: 17.2
XXX percentage an existing variable is used: 82.8
********************* end of statistics **********************/

